+ingress fix
This commit is contained in:
parent
8be1061c52
commit
8fac1e2a46
2 changed files with 11 additions and 2 deletions
|
@ -13,15 +13,19 @@ k8sDeploy () {
|
||||||
cd ${groot}/contrib/ansible && \
|
cd ${groot}/contrib/ansible && \
|
||||||
ansible-playbook bootstrap-node.yml && \
|
ansible-playbook bootstrap-node.yml && \
|
||||||
ansible-playbook init-cluster.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
|
while true ; do
|
||||||
echo "Waiting for CNI..."
|
echo "Waiting for node up..."
|
||||||
result=$(kubectl get nodes|awk '{print $2}'| tail -1| grep -nE '^Ready')
|
result=$(kubectl get nodes|awk '{print $2}'| tail -1| grep -nE '^Ready')
|
||||||
if [ -z "$result" ] ; then
|
if [ -z "$result" ] ; then
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
sleep 1
|
sleep 10
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
InstallRegistry () {
|
||||||
|
echo ToDo
|
||||||
|
}
|
||||||
InstallIngress () {
|
InstallIngress () {
|
||||||
# Allow scheduling on our master node
|
# Allow scheduling on our master node
|
||||||
kubectl taint nodes k8s-demo node-role.kubernetes.io/master-
|
kubectl taint nodes k8s-demo node-role.kubernetes.io/master-
|
||||||
|
@ -36,4 +40,5 @@ if [ ! -f ${bootflag} ]; then
|
||||||
k8sDemoWA;
|
k8sDemoWA;
|
||||||
k8sDeploy;
|
k8sDeploy;
|
||||||
InstallIngress;
|
InstallIngress;
|
||||||
|
InstallRegistry
|
||||||
fi
|
fi
|
||||||
|
|
4
contrib/ymls/ingress.fix.yaml
Normal file
4
contrib/ymls/ingress.fix.yaml
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
spec:
|
||||||
|
externalIPs:
|
||||||
|
- 100.100.100.15
|
||||||
|
loadBalancerIP: 100.100.100.15
|
Loading…
Add table
Add a link
Reference in a new issue