apiVersion: apps/v1
kind: Deployment
metadata:
  name: mydeploy
  namespace: default
spec:
  replicas: 1
  selector:
    matchLabels:
      app: myapp
  template:
    metadata:
      labels:
        app: myapp
      annotations: 
        vault.k8s.corp.net/inject: enabled
    spec:
      containers:
      - image: nginx:latest
        name: nginx
        volumeMounts:
        - mountPath: /secret
          name: vault-secret
      volumes:
      - emptyDir:
          medium: Memory
        name: vault-secret
