apiVersion: apps/v1
kind: Deployment
metadata:
  name: redis-master
spec:
  selector:
    matchLabels:
      app: redis
      role: master
      tier: backend
  replicas: 1
  template:
    metadata:
      labels:
        app: redis
        role: master
        tier: backend
    spec:
      containers:
      - name: master
        image: redis
        resources:
          limits:
            memory: "200Mi"
            cpu: 200m
          requests:
            memory: "100Mi"
            cpu: 100m
        ports:
        - containerPort: 6379
