Gerald
12/15/2023, 8:23 AMflinkConfiguration block?Sumit Nekar
12/15/2023, 8:24 AMGerald
12/15/2023, 8:28 AMSumit Nekar
12/15/2023, 8:38 AMapiVersion: v1
kind: Secret
metadata:
name: my-secret
namespace: {{ .Release.Namespace}}
type: Opaque
stringData:
KEY1: {{ .Values.secret.key1}}
KEY2: {{ .Values.secret.key2}}
In flinkdeployment.yaml
containers:
env:
- name: SECRET_KEY1
valueFrom:
secretKeyRef:
key: KEY1
name: my-secret
- name: SECRET_KEY2
valueFrom:
secretKeyRef:
key: KEY2
name: my-secret
values.yaml
secret:
key1: changeme
key2: changemeGerald
12/15/2023, 11:03 AMflinkConfiguration block of the FlinkDeployment resource itself? Is there some sort of special syntax to use the value of environment variables?
e.g.,
apiVersion: flink.apache.org/v1beta1
kind: FlinkDeployment
metadata:
...
spec:
...
flinkConfiguration:
some.property.with.key: ${SECRET_KEY1}Sumit Nekar
12/15/2023, 4:08 PMspec:
...
flinkConfiguration:
some.property.with.key: {{ .Values.secret.key1}}
But with this, when u do kubectl edit flinkdeployment , u can see ur secret without encodedSweta Kalakuntla
12/15/2023, 9:07 PMSumit Nekar
12/18/2023, 7:12 AMSweta Kalakuntla
12/18/2023, 1:15 PMGerald
12/18/2023, 3:33 PMSweta Kalakuntla
12/18/2023, 5:02 PMSweta Kalakuntla
12/18/2023, 5:03 PMSumit Nekar
12/19/2023, 12:27 PMJosé Fonte
03/13/2024, 2:04 PMmetrics.reporter.dghttp.apikey: xxxJosé Fonte
03/19/2024, 11:43 AMSweta Kalakuntla
05/09/2024, 1:53 PM