+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 && \
|
||||
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
|
||||
|
|
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