# services/typhon/vault-sync-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  name: typhon-vault-sync
  namespace: climate
spec:
  replicas: 1
  selector:
    matchLabels:
      app: typhon-vault-sync
  template:
    metadata:
      labels:
        app: typhon-vault-sync
    spec:
      serviceAccountName: typhon
      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: typhon-vault
