diff --git a/contrib/firstboot.sh b/contrib/firstboot.sh index 8320d83..3481721 100755 --- a/contrib/firstboot.sh +++ b/contrib/firstboot.sh @@ -13,15 +13,19 @@ k8sDeploy () { cd ${groot}/contrib/ansible && \ ansible-playbook bootstrap-node.yml && \ ansible-playbook init-cluster.yml + # Sometimes it's still not ready on this stage, let's check it just to be sure while true ; do - echo "Waiting for CNI..." + echo "Waiting for node up..." result=$(kubectl get nodes|awk '{print $2}'| tail -1| grep -nE '^Ready') if [ -z "$result" ] ; then break fi - sleep 1 + sleep 10 done } +InstallRegistry () { + echo ToDo +} InstallIngress () { # Allow scheduling on our master node kubectl taint nodes k8s-demo node-role.kubernetes.io/master- @@ -36,4 +40,5 @@ if [ ! -f ${bootflag} ]; then k8sDemoWA; k8sDeploy; InstallIngress; + InstallRegistry fi diff --git a/contrib/ymls/ingress.fix.yaml b/contrib/ymls/ingress.fix.yaml new file mode 100644 index 0000000..691c3b1 --- /dev/null +++ b/contrib/ymls/ingress.fix.yaml @@ -0,0 +1,4 @@ +spec: + externalIPs: + - 100.100.100.15 + loadBalancerIP: 100.100.100.15