6
|
1 from invoke import task
|
|
2 from invoke.exceptions import UnexpectedExit
|
|
3
|
|
4 @task
|
|
5 def run(ctx):
|
|
6 ctx.run("cd 00-defs; skaffold run", echo=True)
|
|
7 ctx.run("cd 10-vols; skaffold run", echo=True)
|
|
8 ctx.run("cd 20-kube; skaffold run", echo=True)
|
|
9 # here we must wait for cert-manager-webhook.cert-manager.svc
|
|
10 ctx.run("cd 30-cert-manager; skaffold run", echo=True, warn=True)
|
|
11 ctx.run("cd 30-cert-manager; skaffold run", echo=True)
|
|
12
|
|
13 try:
|
|
14 ctx.run("kubectl get -n pomerium ingress | grep 80")
|
|
15 except UnexpectedExit:
|
|
16 raise SystemExit("expected cm-acme-http-solver-... ingress on port 80")
|
11
|
17
|
|
18 '''
|
|
19 troubleshooting, based on
|
|
20 https://cert-manager.io/docs/troubleshooting/
|
|
21 then
|
|
22 https://cert-manager.io/docs/concepts/acme-orders-challenges/
|
|
23
|
|
24 I had these open:
|
|
25 ✨ dash(pts/31):~% watch 'kubectl describe -n pomerium issuers.cert-manager.io letsencrypt-staging'
|
|
26 ✨ dash(pts/31):~% watch 'kubectl describe -n pomerium issuers.cert-manager.io letsencrypt-prod'
|
|
27 ✨ dash(pts/29):~% watch "kubectl get -n pomerium certificates.cert-manager.io -o wide"
|
|
28 ✨ dash(pts/36):~% watch 'kubectl describe -n pomerium certificaterequests.cert-manager.io'
|
|
29 ✨ dash(pts/37):~% watch 'kubectl describe -n pomerium orders.acme.cert-manager.io'
|
|
30 ✨ dash(pts/38):~% watch 'kubectl describe -n pomerium challenges.acme.cert-manager.io '
|
|
31
|
|
32 then i checked clusterissuer vs issuer, the ns of the 60-auth-cert.yaml resources,
|
|
33 and i often restarted cert-manager and eventually pomerium too. 10-pom-pom.yaml last line
|
|
34 may need to be toggled.
|
|
35
|
|
36 The 'cm-acme-http-solver' ingress for LE comes and goes but i didn't have to force it to exist.
|
|
37
|
|
38 Didn't need 04-gen-secrets-job.yaml
|
|
39
|
|
40 Also, CM says this a lot which means it may be afraid to renew bigasterisk.com
|
|
41
|
|
42 I1213 07:00:01.946799 1 sync.go:394] cert-manager/controller/ingress-shim "msg"="certificate resource is not owned by this object. refusing to update non-owned certificate resource for object" "related_resource_kind"="Certificate" "related_resource_name"="bigasterisk.com-tls" "related_resource_namespace"="default" "related_resource_version"="v1" "resource_kind"="Ingress" "resource_name"="registry" "resource_namespace"="default" "resource_version"="v1"
|
|
43
|
|
44 '''
|