Skip to content

Commit

Permalink
Merge pull request #175 from NVIDIA/fix-calico-flakes
Browse files Browse the repository at this point in the history
fix intermittent calico failures during k8s-bootstrap
  • Loading branch information
ArangoGutierrez authored Sep 26, 2024
2 parents 5cddfa2 + e1013ec commit fb35c86
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pkg/provisioner/templates/kubernetes.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,10 @@ export KUBECONFIG="${HOME}/.kube/config"
# Install Calico
# based on https://docs.tigera.io/calico/latest/getting-started/kubernetes/quickstart
with_retry 3 10s kubectl --kubeconfig $KUBECONFIG create -f https://raw.githubusercontent.com/projectcalico/calico/${CALICO_VERSION}/manifests/tigera-operator.yaml
with_retry 3 10s kubectl --kubeconfig $KUBECONFIG create -f https://raw.githubusercontent.com/projectcalico/calico/${CALICO_VERSION}/manifests/custom-resources.yaml
with_retry 3 10s kubectl --kubeconfig $KUBECONFIG apply -f https://raw.githubusercontent.com/projectcalico/calico/${CALICO_VERSION}/manifests/tigera-operator.yaml
# Calico CRDs created. Now we sleep for 10s to ensure they are fully registered in the K8s etcd
sleep 10s
with_retry 3 10s kubectl --kubeconfig $KUBECONFIG apply -f https://raw.githubusercontent.com/projectcalico/calico/${CALICO_VERSION}/manifests/custom-resources.yaml
# Make single-node cluster schedulable
kubectl taint nodes --all node-role.kubernetes.io/control-plane:NoSchedule-
kubectl label node --all node-role.kubernetes.io/worker=
Expand Down

0 comments on commit fb35c86

Please sign in to comment.