mirror of
https://gitlab.sectorq.eu/jaydee/ansible.git
synced 2026-03-12 21:32:48 +01:00
klal
This commit is contained in:
@@ -198,7 +198,12 @@
|
||||
- name: Install Flannel CNI
|
||||
become_user: "{{ ansible_user }}"
|
||||
command: kubectl apply -f https://raw.githubusercontent.com/flannel-io/flannel/master/Documentation/kube-flannel.yml
|
||||
when: inventory_hostname.endswith('-vm01.home.lan')
|
||||
when: inventory_hostname.endswith('-vm01.home.lan') and net_driver == 'flannel'
|
||||
|
||||
- name: Install Calico CNI
|
||||
become_user: "{{ ansible_user }}"
|
||||
command: kubectl apply -f https://raw.githubusercontent.com/projectcalico/calico/master/manifests/calico.yaml
|
||||
when: inventory_hostname.endswith('-vm01.home.lan') and net_driver == 'calico'
|
||||
|
||||
- name: Get join command
|
||||
command: kubeadm token create --print-join-command
|
||||
|
||||
@@ -5,4 +5,5 @@ aliases:
|
||||
k: "kubectl"
|
||||
gk: "git clone git@gitlab.sectorq.eu:jaydee/kubernetes.git"
|
||||
|
||||
use_local_repo: true
|
||||
use_local_repo: true
|
||||
net_driver: calico
|
||||
Reference in New Issue
Block a user