[ https://issues.apache.org/jira/browse/FLINK-30577?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17680389#comment-17680389 ]
James Busche commented on FLINK-30577: -------------------------------------- I've switched to your branch [~tagarr] and then done the following: # Created a new docker image using the Dockerfile # Installed helm both in default and later in the flink namespaces using your code and the new docker image. # Deployed a sessionjob and flinkdep, they looked good. Next, I cleaned up and created an OLM bundle, deployed it to openshift-operators. # Deployed sessionjob and flinkdeps to two different namespaces, they looked good. Last, I deployed the operator to a specific namespace: jim2 # Deployed sessionjob and flinkdeps to two different namespaces, they looked good. In all cases, the operator log looked clean, and had entries like this: {quote}oc logs -f flink-kubernetes-operator-86b7655f65-pj9x7 |grep artifacts 2023-01-24 23:38:25,401 o.a.f.k.o.a.ArtifactManager [INFO ][jim2/basic-session-job-only-example] Created dir: /opt/flink/*artifacts*/jim2/basic-session-deployment-only-example/basic-session-job-only-example {quote} > 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 > Assignee: Tony Garrard > Priority: Major > Labels: pull-request-available > > [~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)