fix
This commit is contained in:
parent
abc8d04f2f
commit
db67dde361
2 changed files with 3 additions and 4 deletions
|
@ -20,7 +20,7 @@
|
||||||
# when: and ansible_hostname == k8s_first_master_node
|
# when: and ansible_hostname == k8s_first_master_node
|
||||||
|
|
||||||
- name: Install Calico CNI
|
- 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
|
when: ansible_hostname == k8s_first_master_node
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,9 +3,10 @@ bootflag='/.manufactured'
|
||||||
groot='/opt/coins-demo'
|
groot='/opt/coins-demo'
|
||||||
|
|
||||||
k8sDemoWA () {
|
k8sDemoWA () {
|
||||||
reset
|
printf "\033c"
|
||||||
echo 'Disabling swap space...'
|
echo 'Disabling swap space...'
|
||||||
sync && swapoff -a && sed -i '/ swap / s/^/#/' /etc/fstab
|
sync && swapoff -a && sed -i '/ swap / s/^/#/' /etc/fstab
|
||||||
|
export KUBECONFIG=/root/.kube/config
|
||||||
}
|
}
|
||||||
k8sDeploy () {
|
k8sDeploy () {
|
||||||
echo 'Installing K8s...'
|
echo 'Installing K8s...'
|
||||||
|
@ -21,6 +22,4 @@ if [ ! -f ${bootflag} ]; then
|
||||||
touch ${bootflag}
|
touch ${bootflag}
|
||||||
k8sDemoWA;
|
k8sDemoWA;
|
||||||
k8sDeploy;
|
k8sDeploy;
|
||||||
sync;
|
|
||||||
reboot;
|
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue