James Busche created FLINK-30577: ------------------------------------ Summary: OpenShift FlinkSessionJob artifact write error on non-default namespaces Key: FLINK-30577 URL: https://issues.apache.org/jira/browse/FLINK-30577 Project: Flink Issue Type: Bug Components: Kubernetes Operator Affects Versions: kubernetes-operator-1.3.0 Reporter: James Busche
[~tagarr] has pointed out an issue with using the /opt/flink/artifacts filesystem on OpenShift in non-default namespaces. The OpenShift permissions don't allow write to /opt. ``` org.apache.flink.util.FlinkRuntimeException: Failed to create the dir: /opt/flink/artifacts/jim/basic-session-deployment-only-example/basic-session-job-only-example ``` A few ways to solve the problem are: 1. Remove the comment on line 34 here in [flink-conf.yaml|https://github.com/apache/flink-kubernetes-operator/blob/main/helm/flink-kubernetes-operator/conf/flink-conf.yaml#L34] and change it to: /tmp/flink/artifacts 2. Append this after line 143 here in [values.yaml|https://github.com/apache/flink-kubernetes-operator/blob/main/helm/flink-kubernetes-operator/values.yaml#L142]: kubernetes.operator.user.artifacts.base.dir: /tmp/flink/artifacts 3. Changing it in line 142 of [KubernetesOperatorConfigOptions.java|https://github.com/apache/flink-kubernetes-operator/blob/main/flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/config/KubernetesOperatorConfigOptions.java#L142] like this: .defaultValue("/tmp/flink/artifacts") and then rebuilding the operator image. -- This message was sent by Atlassian Jira (v8.20.10#820010)