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
This role currently only supports ubuntu.
master_ip
is required by the role to ensure the correct components are installed on the master node vs the worker node.
This role does not have any dependencies.
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
- 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
- If you want more information on how this works, check out a blog post I wrote.
MIT