mirror of
https://github.com/phfroidmont/self-hosting.git
synced 2025-12-25 13:46:59 +01:00
Install Kubernetes 1.11 and go back to Ubuntu Xenial until Bionic is officially supported
This commit is contained in:
parent
5acc7652a9
commit
bf83e675f2
26 changed files with 765 additions and 7 deletions
29
roles/kubernetes/tasks/kubeadm-config.yml
Normal file
29
roles/kubernetes/tasks/kubeadm-config.yml
Normal 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"
|
||||
Loading…
Add table
Add a link
Reference in a new issue