Open devholic opened 3 years ago
Add possibilities for mounting secret properties from Secret.
Secret
Resolves #383
As @shashken described at https://github.com/GoogleCloudPlatform/flink-on-k8s-operator/issues/383#issuecomment-747453395,
Use flinkPropertiesSecret option in CRD and mount the entire properties into a Secret like @functicons suggested.
flinkPropertiesSecret
ConfigMap
emptyDir
/opt/flink/conf/flink-conf.yaml
readonly
Background
Add possibilities for mounting secret properties from
Secret
.Resolves #383
Implementation strategy
As @shashken described at https://github.com/GoogleCloudPlatform/flink-on-k8s-operator/issues/383#issuecomment-747453395,
Use
flinkPropertiesSecret
option in CRD and mount the entire properties into a Secret like @functicons suggested.flinkPropertiesSecret
set,ConfigMap
to config directory since mounting specific file fromemptyDir
is not possible./opt/flink/conf/flink-conf.yaml
readonly
mounted to main containers as same as currentConfigMap
implementation.ConfigMap
as config volume like as-is.Limitations
ConfigMap
updates without restarting the pod