apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: default
  name: crier
  labels:
    app: crier
spec:
  replicas: 1
  selector:
    matchLabels:
      app: crier
  template:
    metadata:
      labels:
        app: crier
    spec:
      serviceAccountName: crier
      terminationGracePeriodSeconds: 30
      containers:
        - name: crier
          image: gcr.io/k8s-prow/crier:v20200319-1aea24112
          args:
            - --config-path=/etc/config/config.yaml
            - --job-config-path=/etc/job-config
            - --slack-workers=1
            - --slack-token-file=/etc/slack/token
            - --gcs-workers=1
            - --gcs-credentials-file=/etc/credentials/service-account.json
            - --kubeconfig=/etc/workload-clusters/config
          volumeMounts:
            - name: kubeconfig
              mountPath: /etc/workload-clusters
              readOnly: true
            - name: config
              mountPath: /etc/config
              readOnly: true
            - name: job-config
              mountPath: /etc/job-config
              readOnly: true
            - name: slack
              mountPath: /etc/slack
              readOnly: true
            - name: gcs-service-account
              mountPath: /etc/credentials
              readOnly: true
      volumes:
        - name: kubeconfig
          secret:
            secretName: workload-clusters-kubeconfig
        - name: config
          configMap:
            name: config
        - name: job-config
          configMap:
            name: job-config
        - name: slack
          secret:
            secretName: slack-token
        - name: gcs-service-account
          secret:
            secretName: sa-crier
