---
apiVersion: v1
kind: Service
metadata:
  labels:
    io.kompose.service: redis
  name: redis
spec:
  ports:
    - name: "6379"
      port: 6379
      targetPort: 6379
  selector:
    io.kompose.service: redis
  type: NodePort

---
apiVersion: v1
kind: Pod
metadata:
  labels:
    io.kompose.service: redis
  name: redis
spec:
  containers:
    - envFrom:
        - configMapRef:
            name: foo-env
        - configMapRef:
            name: bar-env
      image: bitnami/redis:latest
      name: redis
      ports:
        - containerPort: 6379
          protocol: TCP
  restartPolicy: Never

---
apiVersion: v1
data:
  ALLOW_EMPTY_PASSWORD: "yes"
kind: ConfigMap
metadata:
  labels:
    io.kompose.service: redis-foo-env
  name: foo-env

---
apiVersion: v1
data:
  BAR: FOO
  FOO: BAR
kind: ConfigMap
metadata:
  labels:
    io.kompose.service: redis-bar-env
  name: bar-env

