I want to store some the keystore of logstash application as secret, using volumeMount to get it back to filesystem:
volumeMounts: # logstash keystore file - name: keystore-file mountPath: "/usr/share/logstash/config/logstash.keystore" subPath: "logstash.keystore" ... volumes: - name: keystore-file secret: secretName: test-logstash-keystore-secret
the secret looks like this:
Name: test-logstash-keystore-secret Namespace: default Labels: app=logstash cluster=test Annotations: <none> Type: Opaque Data ==== keystore-password: 4 bytes logstash.keystore: 970 bytes
The mounted file has owner root with permission 644.
Is it possible via the deployment to give secret which is mounted to a file an explicit ownership with explicit permissions?