From 8fac1e2a46e615bf876c6e33abef4064872a0843 Mon Sep 17 00:00:00 2001 From: D4rk4 Date: Sat, 1 Aug 2020 17:03:57 +0200 Subject: [PATCH] +ingress fix --- contrib/firstboot.sh | 9 +++++++-- contrib/ymls/ingress.fix.yaml | 4 ++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 contrib/ymls/ingress.fix.yaml 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