Examples
Complete, runnable examples for the Kubernetes Injector integration in Keeper Secrets Manager
Quick check: inject a secret into a Pod
apiVersion: v1
kind: Pod
metadata:
name: hello-secrets
annotations:
keeper.security/inject: "true"
keeper.security/ksm-config: "keeper-credentials"
keeper.security/secret: "demo-secret"
spec:
containers:
- name: app
image: busybox:1.36
command: ["sh", "-c", "cat /keeper/secrets/demo-secret.json && sleep 3600"]kubectl logs hello-secrets # prints the record JSON
kubectl get pod hello-secrets -o jsonpath='{.spec.containers[*].name}' # includes keeper-secrets-sidecarDatabase credentials as a file
Render a .env file
.env fileBuild a connection string with a template
Inject as environment variables
Create a Kubernetes Secret for a Deployment
TLS certificate and key for NGINX
Inject every secret in a folder
Extract a single field with Keeper Notation
Automatic rotation
More examples and Github Source
Last updated
Was this helpful?

