[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Permissions problem mounting file from ConfigMap



Hi All,

I'm having a problem mounting a file from a ConfigMap when running on an Openshift origin environment, but when doing the same on Minishift it works fine.

I'm mounting the context.xml file from the ConfigMap into the container like this:

      spec:
        containers:
        - image: ...
          ...
          volumeMounts:
            - mountPath: /usr/local/tomcat/webapps/portal/META-INF/context.xml
              name: my-configmap-vol
              subPath: context.xml
              readOnly: true
        volumes:
          - name: my-configmap-vol
            configMap:
              name: squonk-sso-config

Within the container the file is there but has permissions problems:

# ls -l
ls: cannot access 'context.xml': Permission denied
total 4
-rw-r--r--. 1 root root 104 Dec  5 12:48 MANIFEST.MF
-?????????? ? ?    ?      ?            ? context.xml

Any idea what's the problem?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]