scottslowe-learning-tools/ansible/kubeadm-template/template.yml
Scott Lowe e5c543310c
Add example Ansible playbook to create config file
Add Jinja2 template for Kubeadm configuration file. Add Ansible playbook to create a configuration file from the Jinja2 template. Add README.md with instructions and more information.

Signed-off-by: Scott Lowe <scott.lowe@scottlowe.org>
2018-04-19 13:28:17 -06:00

20 lines
508 B
YAML

---
- hosts: all
vars:
apiAdvertiseAddress: 192.168.100.100
etcdServer1: 192.168.100.200
etcdServer2: 192.168.100.201
etcdServer3: 192.168.100.202
podSubnet: 172.24.0.0/16
serviceSubnet: 10.0.0.0/16
k8sVersion: 1.9.6
cloudProvider: aws
kubeadmToken: 8fcc26.83ab1665d9142018
apiServerCertSANs: apiserver.cluster.io
tasks:
- name: Render kubeadm.conf template
local_action:
module: template
src: kubeadm.conf.j2
dest: kubeadm.conf