diff --git a/ceph/templates/secrets.yaml b/ceph/templates/secrets.yaml index 05f547ce28..eafaca486f 100644 --- a/ceph/templates/secrets.yaml +++ b/ceph/templates/secrets.yaml @@ -46,4 +46,4 @@ metadata: type: Opaque data: ceph-client-key: | -{{ include "secrets/ceph-client-key" . | indent 4 }} +{{ include "secrets/ceph-client-key" . | b64enc | indent 4 }} diff --git a/common/templates/secrets.yaml b/common/templates/secrets.yaml index ea0b9c1ea2..62387f2f2b 100644 --- a/common/templates/secrets.yaml +++ b/common/templates/secrets.yaml @@ -6,7 +6,7 @@ metadata: type: kubernetes.io/rbd data: key: | -{{ include "secrets/ceph-client-key" . | indent 4 }} +{{ include "secrets/ceph-client-key" . | b64enc | indent 4 }} --- apiVersion: v1 kind: Secret @@ -15,4 +15,4 @@ metadata: type: kubernetes.io/rbd data: key: | -{{ include "secrets/ceph-client-key" . | indent 4 }} +{{ include "secrets/ceph-client-key" . | b64enc | indent 4 }}