Skip to content

karanthukral/Kube-Deploy-Ansible

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kube-deploy

Ansible role to install docker and deploy kubernetes on an Ubuntu cluster. The deployment uses docker to run the required kubernetes components. The install script can be found at docker-multinode

Requirements

This role currently only supports ubuntu.

Role Variables

master_ip is required by the role to ensure the correct components are installed on the master node vs the worker node.

Dependencies

This role does not have any dependencies.

Example Playbook

Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:

---
- vars:
    master_ip: 64.x.x.x
  hosts: kube-cluster

  roles:
    - kube-deploy

Testing

  • Install kubectl (brew install kubectl)
  • Create the kube config at ~/.kube/config
  • Example kube config
apiVersion: v1
clusters:
- cluster:
    server: http://<IP_ADDRESS>:8080
  name: my-cluster
contexts:
- context:
    cluster: my-cluster
    user: ""
  name: my-context
current-context: my-context
kind: Config
preferences: {}
users:
  • Run kubectl get nodes and you should see all your nodes
  • Congratulations you have a working kubernetes cluster

Blog

  • If you want more information on how this works, check out a blog post I wrote.

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published