Install Kubernetes 1.11 and go back to Ubuntu Xenial until Bionic is officially supported

This commit is contained in:
Paul-Henri Froidmont 2018-09-25 17:07:38 +02:00
parent 5acc7652a9
commit bf83e675f2
26 changed files with 765 additions and 7 deletions

View file

@ -0,0 +1,29 @@
---
# generating the kubeadm config file only on master nodes
- name: Creating kubeadm_config file
template:
src: kubeadm-config.j2
dest: /tmp/kubeadm_config
when:
- groups.k8s_masters | length > 1
- "'k8s_masters' in group_names"
# KUBELET_EXTRA_ARGS
- name: Additional configuration
template:
src: local-extras.conf.j2
dest: /etc/systemd/system/kubelet.service.d/90-local-extras.conf
mode: 0640
when:
- "kubelet_fail_swap_on == False"
notify:
- reload systemd
- restart kubelet
- meta: flush_handlers
- name: Creating .kube file in $HOME
file:
path: ~/.kube
state: directory
when: "'k8s_masters' in group_names"