---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: redis-deployment
  namespace: ops
spec:
  replicas: 1
  selector:
    matchLabels:
      app: redis
  template:
    metadata:
      labels:
        app: redis
    spec:
      restartPolicy: Always
      containers:
      - name: redis
        image: bitnami/redis:latest
        envFrom:
        - configMapRef:
            name: redis-configmap
