apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: pipelines-vote-api
  name: pipelines-vote-api
spec:
  replicas: 1
  selector:
    matchLabels:
      app: pipelines-vote-api
  template:
    metadata:
      labels:
        app: pipelines-vote-api
    spec:
      containers:
#        - image: quay.io/openshift-pipeline/vote-api:latest
        - image: default-route-openshift-image-registry.apps.stg-rcomm.openshift.copse.jp/pipelines-tutorial/pipelines-vote-api:latest
          imagePullPolicy: Always
          name: pipelines-vote-api
          ports:
            - containerPort: 9000
              protocol: TCP
      nodeSelector:
        type: rcom-node
      tolerations:
      - key: node-role.kubernetes.io/worker
        operator: "Exists"
        effect: "NoSchedule"
      - key: node.kubernetes.io/unreachable
        operator: "Exists"
        effect: "NoSchedule"              
