apiVersion: apps/v1
kind: Deployment
metadata:
  name: test-app3
  namespace: default
spec:
  replicas: 1
  selector:
    matchLabels:
      com.talend.application: test-app3
      com.talend.service: test-app3-svc
  template:
    metadata:
      annotations:
        sidecar.vault.talend.org/inject: "true"
        sidecar.vault.talend.org/role: "test"
        sidecar.vault.talend.org/secrets-path: "secret/test/test-app-svc"
        sidecar.vault.talend.org/secrets-destination: "supersecrets.properties"
      labels:
        com.talend.application: test-app3
        com.talend.service: test-app3-svc
    spec:
      serviceAccountName: default
      containers:
        - name: test-app3-container
          image: busybox:1.28
          command:
            - "sh"
            - "-c"
            - >
              while true;do echo "My secrets are: $(cat /opt/talend/secrets/supersecrets.properties)"; sleep 5; done
