apiVersion: apps/v1
kind: Deployment
metadata:
  name: busybox-secret
  namespace: default
  labels:
    testsecret: ke1ya
    envconfigtest: 22rpm
spec:
  replicas: 1
  revisionHistoryLimit: 2
  strategy: 
    type: RollingUpdate
  selector:
    matchLabels:
      app: busybox
  template:
    metadata:
      labels:
        app: busybox
    spec:
      containers:
      - name: busybox
        image: busybox
        imagePullPolicy: IfNotPresent
        command: ['sh', '-c', 'echo Container 1 is Running ; sleep 3600']
        envFrom:
        - configMapRef:
            name: envconfigtest-22rpm
        volumeMounts:
        - mountPath: /test
          name: testsecret
      volumes:
      - name: testsecret
        secret:
          secretName: testsecret-ke1ya
