Skip to content
New issue

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

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

Already on GitHub? # to your account

External secrets create multiple secrets in k8s #388

Open
mariusv opened this issue Apr 23, 2021 · 3 comments
Open

External secrets create multiple secrets in k8s #388

mariusv opened this issue Apr 23, 2021 · 3 comments
Labels
enhancement Adding additional functionality or improvements pinned Prevents stalebot from removing

Comments

@mariusv
Copy link

mariusv commented Apr 23, 2021

Heya,

If one needs to create multiple Kubernetes secrets from AWS Secrets Manager (for example) can't do it as for now the rok8s-scripts will just pull all secrets in AWS_SECRETS and merge them in the EXTERNAL_SECRETS_K8S_NAME which will create the Kubernetes secret.

Would be nice to have this option to create multiple k8s secrets from specific AWS/GCP secrets manager.

For now the workaround is to create one secret in k8s and then selectively mount or use the keys as needed.

For example:

  volumes:
  - name: foo
    secret:
      secretName: mysecret
      items:
      - key: username
        path: my-group/my-username
@stale
Copy link

stale bot commented Jul 21, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale Marked as stale by stalebot label Jul 21, 2021
@stale stale bot closed this as completed Jul 30, 2021
@sudermanjr sudermanjr reopened this Jul 30, 2021
@stale stale bot removed the stale Marked as stale by stalebot label Jul 30, 2021
@sudermanjr sudermanjr added pinned Prevents stalebot from removing enhancement Adding additional functionality or improvements labels Jul 30, 2021
@gaspo53
Copy link

gaspo53 commented May 16, 2022

Hey! Do you have an example on how to use AWS_SECRETS with get-secrets? I just need to inject a value from a secret for the template rendering (I don't need to create kubernetes secrets, just read AWS ones).

Thanks!

@sudermanjr
Copy link
Member

I don't believe we support that particular use-case with rok8s scripts. You would likely need to retrieve that from AWS before running rok8s.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement Adding additional functionality or improvements pinned Prevents stalebot from removing
Projects
None yet
Development

No branches or pull requests

3 participants