titan-iac/services/comms/vault-sync-deployment.yaml

35 lines
818 B
YAML

# services/comms/vault-sync-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: comms-vault-sync
namespace: comms
spec:
replicas: 1
selector:
matchLabels:
app: comms-vault-sync
template:
metadata:
labels:
app: comms-vault-sync
spec:
serviceAccountName: comms-vault
containers:
- name: sync
image: alpine:3.20
command: ["/bin/sh", "-c"]
args:
- "sleep infinity"
volumeMounts:
- name: vault-secrets
mountPath: /vault/secrets
readOnly: true
volumes:
- name: vault-secrets
csi:
driver: secrets-store.csi.k8s.io
readOnly: true
volumeAttributes:
secretProviderClass: comms-vault