apiVersion: v1
kind: Pod
metadata:
  name: pod-configmap
spec:
  containers:
  - name: demo
    image: alpine
    command: ["sleep", "3600"]
    env:
      - name: HOST_DB_ENV
        valueFrom:
          configMapKeyRef:
            name: 03db-configyaml 
            key: host 
      - name: PORT_DB_ENV
        valueFrom:
          configMapKeyRef:
            name: 03db-configyaml 
            key: port
    volumeMounts:
    - name: config
      mountPath: "/config"
      readOnly: true
  volumes:
  - name: config
    configMap:
      name: 03db-configfile
      items:
      - key: "03-configmap.properties"
        path: "config.properties"