-
Notifications
You must be signed in to change notification settings - Fork 2
Fixed random installation failure of ingress-ngix during setup manage… #1877
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -186,12 +186,24 @@ function setup { | |
| kubectl wait --for=condition=Ready --timeout=300s -n flux-system --all pod | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Other thing that comes to mind is to
https://helm.sh/docs/helm/helm_install/ Which I would assume would be in the main chart at least, maybe the subcharts too (like policy-agent), not sure exactly. |
||
|
|
||
| # Install ingress-nginx for tls termination | ||
| helm upgrade --install ingress-nginx ingress-nginx/ingress-nginx \ | ||
| --namespace ingress-nginx --create-namespace \ | ||
| --version 4.0.18 \ | ||
| --set controller.service.type=NodePort \ | ||
| --set controller.service.nodePorts.https=${UI_NODEPORT} \ | ||
| --set controller.extraArgs.v=4 | ||
| command="helm upgrade --install ingress-nginx ingress-nginx/ingress-nginx \ | ||
| --namespace ingress-nginx --create-namespace \ | ||
| --version 4.4.0 \ | ||
| --set controller.service.type=NodePort \ | ||
| --set controller.service.nodePorts.https=30080 \ | ||
| --set controller.extraArgs.v=4" | ||
| # When policy-agent ValidatingWebhook service has not fully started up, admission controller call to matching validating webhook fails. | ||
| # Retrying few times gives enough time for ValidatingWebhook service to become available | ||
| for i in {0..5} | ||
| do | ||
| echo "Attempt installing ingress-nginx: $(($i+1))" | ||
| eval $command | ||
| if [ $? -ne 0 ]; then | ||
| sleep 3 | ||
| else | ||
| break | ||
| fi | ||
| done | ||
| kubectl wait --for=condition=Ready --timeout=120s -n ingress-nginx --all pod | ||
|
|
||
| cat ${args[1]}/test/utils/data/certificate-issuer.yaml | \ | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍