Helm chart: can webhook serving certificate expire if keepTLSSecret is enabled? #4532
-
|
For context, I'm using Cert Manager (with From what I can tell, enabling Is this expected behavior? ReproductionI installed the chart with the following values: enableCertManager: trueI verified that the following certificates were created: $ kubectl get certificate
NAME READY SECRET AGE
aws-load-balancer-root-cert True aws-load-balancer-root-cert 2m50s
aws-load-balancer-serving-cert True aws-load-balancer-tls 113sand the following secrets as a result: $ kubectl get secret
NAME TYPE DATA AGE
aws-load-balancer-root-cert kubernetes.io/tls 3 3m36s
aws-load-balancer-tls kubernetes.io/tls 3 2m39sI then ran kube-system, aws-load-balancer-serving-cert, Certificate (cert-manager.io) has been removed:
- apiVersion: cert-manager.io/v1
- kind: Certificate
- metadata:
- labels:
- app.kubernetes.io/instance: aws-load-balancer-controller
- app.kubernetes.io/managed-by: Helm
- app.kubernetes.io/name: aws-load-balancer-controller
- app.kubernetes.io/version: v2.17.0
- helm.sh/chart: aws-load-balancer-controller-1.17.0
- name: aws-load-balancer-serving-cert
- namespace: kube-system
- spec:
- dnsNames:
- - aws-load-balancer-webhook-service.kube-system.svc
- - aws-load-balancer-webhook-service.kube-system.svc.cluster.local
- duration: 8760h0m0s
- issuerRef:
- kind: Issuer
- name: aws-load-balancer-root-issuer
- renewBefore: 720h0m0s
- secretName: aws-load-balancer-tlsI think this makes sense from the perspective of ensuring the Secret is reused, but it seems like a footgun in that the default configuration for |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi, sorry for missing this. You are right this is bad behavior and it's also discussed here: #4541 I would recommend re-deploying the chart with |
Beta Was this translation helpful? Give feedback.
Hi, sorry for missing this. You are right this is bad behavior and it's also discussed here: #4541
I would recommend re-deploying the chart with
keepTLSSecret=false.