
apiVersion: apps/v1
kind: Deployment

metadata:
  name: redis
  labels:
    name: redis

spec:
  replicas: 1
  selector:
    matchLabels:
      app: redis

  # The PodTemplate
  template:
    metadata:
      labels:
        app: redis

    # The Pod
    spec:

      containers:
      - name: redis
        image: redis

        ports:
        - name: redis
          containerPort: 6379
  #          hostPort: 6379

        resources:
          limits:
            memory: "128Mi"
            cpu: "500m"

