diff --git a/docs/source/deployment/k8s.md b/docs/source/deployment/k8s.md index a7d796091b06c..760214e112fba 100644 --- a/docs/source/deployment/k8s.md +++ b/docs/source/deployment/k8s.md @@ -43,7 +43,7 @@ metadata: name: hf-token-secret namespace: default type: Opaque -data: +stringData: token: "REPLACE_WITH_TOKEN" ``` diff --git a/examples/chart-helm/templates/secrets.yaml b/examples/chart-helm/templates/secrets.yaml index 4e88e747b616a..923fd611ad7a2 100644 --- a/examples/chart-helm/templates/secrets.yaml +++ b/examples/chart-helm/templates/secrets.yaml @@ -4,7 +4,7 @@ metadata: name: "{{ .Release.Name }}-secrets" namespace: {{ .Release.Namespace }} type: Opaque -data: +stringData: {{- range $key, $val := .Values.secrets }} {{ $key }}: {{ $val | b64enc | quote }} {{- end }} \ No newline at end of file