apiVersion: apps/v1 #  for k8s versions before 1.9.0 use apps/v1beta2  and before 1.8.0 use extensions/v1beta1
kind: Deployment
metadata:
  name: redis-master
spec:
  selector:
    matchLabels:
      app: redis
      role: master
      tier: backend
  replicas: 1
  template:
    metadata:
      labels:
        app: redis
        role: master
        tier: backend
    spec:
      nodeSelector:
        agentpool: captain
      containers:
      - name: master
        image: signalrperfv2acr.azurecr.io/signalrbenchmark/redis
        resources:
          requests:
            cpu: 1000m
            memory: 1024Mi
        ports:
        - containerPort: 6379