helm-operator when creating certificate via secret , diff certificate seen in different pods even after using same certificate from secret #6806
Labels
lifecycle/stale
Denotes an issue or PR has remained open with no activity and has become stale.
Bug Report
helm-operator when creating certificate via secret , diff certificate seen in different pods even after using same certificate from secret
What did you do?
Created certificate in
{{- $cn := "localhost" }}
{{- $CA := genCA $cn 3650 }}
{{- $Cert := genSignedCert $cn nil nil 3650 $CA }}
{{- $PemCert := $Cert.Cert | b64enc | quote }}
{{- $PemKey := $Cert.Key | b64enc | quote }}
{{- $PemCA := $CA.Cert | b64enc | quote }}
apiVersion: v1
kind: Secret
metadata:
namespace: {{ .Release.Namespace }}
name: Secret-certs
data:
ca-cert.pem: {{ $PemCA }}
Started using this after mounting in my pods
volumes:
- name: container-certs
secret:
secretName: Secret-certs
What did you expect to see?
I want to have same certificate in both pods since same secret is being used
What did you see instead? Under which circumstances?
Environment
Operator type:
Kubernetes cluster type:
$ operator-sdk version
$ go version
(if language is Go)$ kubectl version
Possible Solution
Additional context
The text was updated successfully, but these errors were encountered: