---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: redis
spec:
  selector:
    matchLabels:
      app: redis
  replicas: 1
  template:
    metadata:
      labels:
        app: redis
    spec:
      containers:
        - name: master
          image: redis:5.0.4-alpine
          imagePullPolicy: Always
          resources:
            requests:
              cpu: 1m
              memory: 128Mi
            limits:
              cpu: 500m
              memory: 128Mi
          ports:
            - containerPort: 6379
