apiVersion: apps/v1
kind: Deployment
metadata:
  name: redis-deployment
spec:
  replicas: 1
  selector:
    matchLabels: 
      component: cache
  template:
    metadata:
      labels:
        component: cache
    spec:
      containers: 
        - name: redis
          image: redis
          ports:
            - containerPort: 6379
