apiVersion: apps/v1
kind: Deployment
metadata:
  name: redis-deployment                         #Unique name for the deployment
  labels:
    app: redis
spec:
  selector:
    matchLabels:
      app: redis                                 #Deployment applies to the matching pods
  template:
    metadata:
      labels:
        app: redis
    spec:
      containers:
      - name: redis
        image: redis
        resources:
          limits:
            memory: "128Mi"
            cpu: "500m"
        ports:
        - containerPort: 6379
        
