apiVersion: apps/v1 
kind: Deployment
metadata:
  name: redis-discount-db # This will be the name of our deployment.
  labels:
    app: redis       # This is the label of the deployment
spec:
  selector:
    matchLabels:     # We use these to select the labeled pods
      app: redis
      mservice: discount
      type: db
  replicas: 2        # I would run 2 pods simultaneously
  template:
    metadata:
      labels:        # Labels to be applied to the Pods in this deployment
        app: redis
        mservice: discount
        type: db
    spec:            # This is the docker container specifications
      containers:
      - name: discount-db
        image: redis  # Image name
        resources:
          requests:
            cpu: 100m
            memory: 100Mi
        ports:  # Main container port. We need not interact with this.
        - containerPort: 6379