Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to use secret that contains files in K8s #1189

Open
NGL91 opened this issue Nov 23, 2020 · 0 comments
Open

Unable to use secret that contains files in K8s #1189

NGL91 opened this issue Nov 23, 2020 · 0 comments

Comments

@NGL91
Copy link

NGL91 commented Nov 23, 2020

Describe the bug

It seems to be unable for working with secret contain files in K8S

Steps to reproduce the issue:

In GCP k8s cluster, create a secret that contains the google cloud service account file
https://kubernetes.io/docs/concepts/configuration/secret/#using-secrets-as-files-from-a-pod
Screen Shot 2020-11-23 at 14 00 14

Install helm chart https://artifacthub.io/packages/helm/banzaicloud-stable/spark-hs with sparkEventLogStorage.secretName point to newly created secret

Expected behavior

New spark-hs service failed to read /opt/spark/conf/secret/google.json

Screen Shot 2020-11-23 at 14 01 35

Additional context

If I change manually in the template deployment from

- name: secret-volume
    mountPath: /opt/spark/conf/secret/google.json
    subPath: google.json

to

- name: secret-volume
 mountPath: /opt/spark/conf/secret/
 readOnly: true

The files from secret are created

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant