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
19
roles/kubernetes/tasks/packages.yml
Normal file
19
roles/kubernetes/tasks/packages.yml
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
---
|
||||
- name: Adding Kubernetes official gpg key
|
||||
apt_key:
|
||||
url: "{{ kubernetes_apt_key }}"
|
||||
state: present
|
||||
|
||||
- name: Adding Kubernetes repository
|
||||
apt_repository:
|
||||
repo: "deb http://apt.kubernetes.io/ kubernetes-{{ kubernetes_release }} {{ kubernetes_apt_channel }}"
|
||||
state: present
|
||||
filename: 'kubernetes'
|
||||
|
||||
- name: Installing kubernetes core components (kubectl, kubelet ...)
|
||||
apt:
|
||||
name: ['kubelet', 'kubeadm', 'kubectl', 'kubernetes-cni']
|
||||
state: latest
|
||||
register: result
|
||||
retries: 3
|
||||
until: result is success
|
||||
Loading…
Add table
Add a link
Reference in a new issue