apiVersion: v1
kind: Pod
metadata:
  name: config-cmd-test-pod
spec:
  containers:
    - name: test-container
      image: gcr.io/google_containers/busybox
      command: [ "/bin/sh", "-c", "echo $(GEM_CONFIG_1) $(GEM_CONFIG_2)" ]
      env:
        - name: GEM_CONFIG_1
          valueFrom:
            configMapKeyRef:
              name: test-configmap
              key: data-1
        - name: GEM_CONFIG_2
          valueFrom:
            configMapKeyRef:
              name: test-configmap
              key: data-2
  restartPolicy: Never
