apiVersion: apps/v1
kind: Deployment
metadata:
  name: boskos-janitor
  labels:
    app.kubernetes.io/part-of: boskos
    app: boskos-janitor
  namespace: boskos
spec:
  selector:
    matchLabels:
      app: boskos-janitor
  replicas: 6
  template:
    metadata:
      labels:
        app: boskos-janitor
    spec:
      serviceAccountName: boskos-admin
      terminationGracePeriodSeconds: 300
      containers:
      - name: boskos-janitor
        image: gcr.io/k8s-staging-boskos/janitor:v20200819-984516e
        args:
        - --resource-type=gcp-project,gcp-perf-test-project
        - --pool-size=20
        - --
        - --hours=0
        - --verbose
      tolerations:
      - key: dedicated
        operator: Equal
        value: boskos
        effect: NoSchedule
      nodeSelector:
        prod: boskos
