Skip to content
Discussion options

You must be logged in to vote

You need to create a separate secret containing credentials, for example, and then use config to mount it into the mountpod.

apiVersion: v1
kind: Secret
metadata:
  name:gc-secret
type: Opaque
stringData:
  google-application-credentials: |
   ...
---
apiVersion: v1
kind: Secret
metadata:
  name: juicefs-secret
type: Opaque
stringData:
  ...
  # Set Secret name and mount directory in configs. This mounts the whole Secret into the specified directory
  configs: "{gc-secret: /root/.config/gcloud}"

documentation:

https://juicefs.com/docs/csi/guide/configurations/#via-secret-1

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@agopalan87
Comment options

Answer selected by zxh326
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants