Hi, To secure the flink container in Kubernetes i ...
# troubleshooting
a
Hi, To secure the flink container in Kubernetes i was trying to add security context like read-only file system but it give the below error: sed: couldn't open temporary file /opt/flink/conf/sedKOSkzJ: Read-only file system sed: couldn't open temporary file /opt/flink/conf/sedO9Qit7: Read-only file system /docker-entrypoint.sh: line 73: /opt/flink/conf/flink-conf.yaml: Permission denied /docker-entrypoint.sh: line 89: /opt/flink/conf/flink-conf.yaml.tmp: Read-only file system
Will Mounting the /opt/flink/conf as an empty dir will solve this error?
I tried adding the mountpath as /opt/flink/conf but it gives : spec.template.spec.containers[0].volumeMounts[2].mountPath: Invalid value: "/opt/flink/conf": must be unique. Any help would be appreciated
k
Are you using openshift?
a
No azure kubernetes cluster and flink client
k
Okay, the above mentioned line of errors coming to me also but everything is working as expected
Ignore this error, try submitting job and check
a
Pod is not even deploying
h
@abhishek sidana Did you end up fixing this issue ? Its coming to me and pods are retsarting
a
Yeah issue have Been fixed, mounted a tmp volume to the pod
It shows error as usual but pods are working fine