Skip to content

Commit

Permalink
Change conditional for traefik default cert
Browse files Browse the repository at this point in the history
  • Loading branch information
jawabuu committed Feb 11, 2021
1 parent 035c528 commit 2a5476f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion service/k3s/wildcard_cert.tf
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ resource "null_resource" "wildcard_cert_apply" {
inline = [<<EOT
until $(nc -z localhost 6443); do echo '[WARN] Waiting for API server to be ready'; sleep 1; done;
until kubectl apply -f /tmp/wildcard_cert.yaml; do nc -zvv localhost 6443; sleep 5; done;
until kubectl get tlsstore default -o jsonpath='{.spec.defaultCertificate.secretName}' | grep -v 'self-signed-cert'; \
until kubectl get tlsstore default -o jsonpath='{.spec.defaultCertificate.secretName}' | grep 'live-dns01-cert'; \
do kubectl patch tlsstore default --type='json' -p='[{"op": "replace", "path": "/spec/defaultCertificate/secretName", "value": "live-dns01-cert" }]'; \
sleep 3; done; echo '[INFO] Wildcard Cert patched';
EOT
Expand Down

0 comments on commit 2a5476f

Please sign in to comment.