mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
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>
20 lines
508 B
YAML
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
|