This commit is contained in:
D4rk4 2020-07-31 17:04:12 +02:00
parent abc8d04f2f
commit db67dde361
2 changed files with 3 additions and 4 deletions

View file

@ -20,7 +20,7 @@
# when: and ansible_hostname == k8s_first_master_node
- name: Install Calico CNI
command: KUBECONFIG=/root/.kube/config kubectl apply -f "https://docs.projectcalico.org/v3.13/manifests/calico.yaml"
command: kubectl apply -f "https://docs.projectcalico.org/v3.13/manifests/calico.yaml"
when: ansible_hostname == k8s_first_master_node

View file

@ -3,9 +3,10 @@ bootflag='/.manufactured'
groot='/opt/coins-demo'
k8sDemoWA () {
reset
printf "\033c"
echo 'Disabling swap space...'
sync && swapoff -a && sed -i '/ swap / s/^/#/' /etc/fstab
export KUBECONFIG=/root/.kube/config
}
k8sDeploy () {
echo 'Installing K8s...'
@ -21,6 +22,4 @@ if [ ! -f ${bootflag} ]; then
touch ${bootflag}
k8sDemoWA;
k8sDeploy;
sync;
reboot;
fi