apiVersion: apps/v1
kind: Deployment
metadata:
  namespace: prow
  name: tichi-web
  labels:
    app: tichi-web
spec:
  replicas: 1
  selector:
    matchLabels:
      app: tichi-web
  template:
    metadata:
      labels:
        app: tichi-web
    spec:
      terminationGracePeriodSeconds: 180
      containers:
        - name: tichi-web
          image: ticommunityinfra/tichi-web:v1.5.10
          imagePullPolicy: Always
          ports:
            - name: http
              containerPort: 3000
          env:
            - name: EXTERNAL_PLUGINS_CONFIG
              value: /etc/external_plugins_config/external_plugins_config.yaml
          volumeMounts:
            - name: external-plugins-config
              mountPath: /etc/external_plugins_config
              readOnly: true
          livenessProbe:
            httpGet:
              path: tichi
              port: 3000
              scheme: HTTP
            initialDelaySeconds: 3
            periodSeconds: 3
          readinessProbe:
            httpGet:
              path: tichi
              port: 3000
              scheme: HTTP
            initialDelaySeconds: 10
            periodSeconds: 3
      volumes:
        - name: external-plugins-config
          configMap:
            name: external-plugins-config