Vault Secrets Operator examples
The Operator project provides the following examples:
JWT auth for Kubernetes clusters in private networks
Vault Secrets Operator supports using the JWT auth method.
JWT auth verifies tokens using the issuer's public signing key.
Vault supports fetching this public key from the Kubernetes API, but if users can't expose the Kubernetes API to Vault, the public key can be provided directly using jwt_validation_pubkeys
.
To configure this please follow the steps outlined for Using JWT validation public keys
Using VaultStaticSecrets for imagePullSecrets
Vault Secret Operator supports Kubernetes' templating of Secrets based on their
Secret Type by setting the
Destination.Type
field of the VaultStaticSecret. Users who have configured private container registries
can use the kubernetes.io/dockerconfigjson
or kubernetes.io/dockerconfig
types to appropriately format
a Kubernetes secret with the contents of their Vault KV Secret.