apiVersion: apps/v1
kind: StatefulSet
metadata:
  name: boskos
  namespace: boskos
spec:
  serviceName: "boskos"
  replicas: 1  # one canonical source of resources
  selector:
    matchLabels:
      app: boskos
  template:
    metadata:
      labels:
        app: boskos
      namespace: boskos
    spec:
      serviceAccountName: boskos-admin
      terminationGracePeriodSeconds: 30
      containers:
      - name: boskos
        image: gcr.io/k8s-prow/boskos/boskos:v20190730-dbac84bd7
        args:
        - --config=/etc/config/resources.yaml
        - --namespace=boskos
        ports:
          - containerPort: 8080
            protocol: TCP
        volumeMounts:
        - name: config
          mountPath: /etc/config
          readOnly: true
      volumes:
      - name: config
        configMap:
          name: boskos-config
      nodeSelector:
        prod: prow
