---

apiVersion: v1
kind: Pod
metadata:
  name: redis-state
  namespace: faasm
  labels:
    app: faasm
    role: redis-state
spec:
  containers:
    - name: master
      image: faasm/redis:0.0.8
      env:
        - name: MASTER
          value: "true"
      ports:
        - containerPort: 6379
#  affinity:
#    # Use affinity to make sure this sits on a redis-only box
#    nodeAffinity:
#      requiredDuringSchedulingIgnoredDuringExecution:
#        nodeSelectorTerms:
#          - matchExpressions:
#              - key: nodeRole
#                operator: In
#                values:
#                  - redis