Skip to content

Instantly share code, notes, and snippets.

@Elexy
Created April 28, 2017 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Elexy/f51f69ced63dac1f9f5b7ad528476289 to your computer and use it in GitHub Desktop.
Save Elexy/f51f69ced63dac1f9f5b7ad528476289 to your computer and use it in GitHub Desktop.
$ cat inventory/kubernetes.ini
#master01 ansible_ssh_host=master01.vanlanschot.cobrowser.com
master02 ansible_ssh_host=master02.vanlanschot.cobrowser.com
node101 ansible_ssh_host=node101.vanlanschot.cobrowser.com
node102 ansible_ssh_host=node102.vanlanschot.cobrowser.com
node103 ansible_ssh_host=node103.vanlanschot.cobrowser.com
node104 ansible_ssh_host=node104.vanlanschot.cobrowser.com
node105 ansible_ssh_host=node105.vanlanschot.cobrowser.com
newnode ansible_ssh_host=new.vanlanschot.cobrowser.com
### BEGIN ANSIBLE MANAGED HOST BLOCK #
### END ANSIBLE MANAGED HOST BLOCK #
[kube-master]
#master01
master02
### BEGIN ANSIBLE MANAGED MASTER BLOCK #
### END ANSIBLE MANAGED MASTER BLOCK #
[etcd]
node101
node102
node103
[k8s-app-nodes]
node101
node102
node103
node104
node105
### BEGIN ANSIBLE MANAGED APP-NODES BLOCK #
### END ANSIBLE MANAGED APP-NODES BLOCK #
[k8s-service-nodes]
[k8s-new-node]
newnode
[kube-node]
node101
node102
node103
node104
node105
### BEGIN ANSIBLE MANAGED KUBE-NODES BLOCK #
### END ANSIBLE MANAGED KUBE-NODES BLOCK #
[k8s-cluster:children]
kube-node
kube-master
[k8s-cluster:vars]
env_name=vanlanschot100
public_ip=5.172.40.54
[kube-master:vars]
kube_apiserver_ext_ip=5.172.40.54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment