Answer the question
In order to leave comments, you need to log in
How to specify p12 license file in Helm chart?
Can't figure out how to properly specify the license file from the .p12 file.
Made a secret with this content. It is created, but the system cannot read it and pass authorization
apiVersion: v1
kind: Secret
metadata:
name: "my-license"
type: Opaque
data:
file: "MIIXvwIBAzCCF4kGCSqGSIb3DQEHAaCCF3oEghd2MIIXcj...o/nmsrQHETEFUdOUfc/4zQQI8mST/thjsjs="
password: "MQo="
base64 /path/to/licence.p12
Answer the question
In order to leave comments, you need to log in
I'll answer myself)
Maybe someone will come in handy.
For values.yaml
base64 /path/to/licence.p12
license:
secretName: "my-license"
createSecret:
enabled: true
fileBase64: "сюда полученное значение из команды выше"
password: "сюда значение из команды ниже"
echo <пароль> | base64
{{- if .Values.global.license.createSecret.enabled -}}
apiVersion: v1
kind: Secret
metadata:
name: "{{ .Values.global.license.secretName }}"
labels:
app.kubernetes.io/name: {{ include "my.name" . }}
helm.sh/chart: {{ include "my.chart" . }}
app.kubernetes.io/instance: {{ .Release.Name }}
app.kubernetes.io/managed-by: {{ .Release.Service }}
type: Opaque
data:
file: "{{ .Values.global.license.createSecret.fileBase64 }}"
password: "{{ .Values.global.license.createSecret.password }}"
{{- end -}}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question