apiVersion: apps/v1
kind: Deployment
metadata:
  name: secret-env
spec:
  replicas: 1
  selector:
    matchLabels:
      app: debug-env
  template:
    metadata:
      labels:
        app: debug-env
    spec:
      containers:
      - name: debug-server
        image: hwchiu/netutils
        env:
        - name: test_key
          valueFrom:
            secretKeyRef:
              name: secret-test
              key: key.new
        - name: version
          valueFrom:
            secretKeyRef:
              name: secret-test
              key: version.date
