Skip to content

Instantly share code, notes, and snippets.

@KyMidd
Last active July 14, 2022 17:12
Show Gist options
  • Select an option

  • Save KyMidd/0ad3e0c8c244845438ffd8b7f7454e89 to your computer and use it in GitHub Desktop.

Select an option

Save KyMidd/0ad3e0c8c244845438ffd8b7f7454e89 to your computer and use it in GitHub Desktop.
apiVersion: apps/v1
kind: Deployment
metadata:
name: secret-fetcher
labels:
app: secret-fetcher
spec:
replicas: 1
selector:
matchLabels:
app: secret-fetcher
template:
metadata:
name: secret-fetcher
labels:
app: secret-fetcher
spec:
serviceAccountName: our-eks-sa-name
volumes:
- name: secrets-store-inline
csi:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: "secrets-provider-name"
containers:
- name: secret-fetcher
image: your-docker-username/your-docker-container-repo-name:latest
volumeMounts:
- name: secrets-store-inline
mountPath: "/mnt/secrets-store"
readOnly: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment