apiVersion: apps/v1 kind: Deployment metadata: name: redis spec: replicas: 1 selector: matchLabels: app: redis template: metadata: labels: app: redis spec: containers: - name: redis image: redis:latest ports: - containerPort: 6379 resources: limits: memory: "1Gi" cpu: "0.5" requests: memory: "512Mi" cpu: "250m"