apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: redis
  name: redis
  namespace: vote
spec:
  replicas: 1
  selector:
    matchLabels:
      app: redis
  template:
    metadata:
      labels:
        app: redis
    spec:
      containers:
      - image: redis:alpine
      # - image: redis
        name: redis
        ports:
        - containerPort: 6379
      #     name: redis
      #   volumeMounts:
      #   - mountPath: /data
      #     name: redis-data
      # volumes:
      # - name: redis-data
      #   emptyDir: {} 
