k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/config/prow/cluster/tide_deployment.yaml (about)

     1  # Copyright 2017 The Kubernetes Authors All rights reserved.
     2  #
     3  # Licensed under the Apache License, Version 2.0 (the "License");
     4  # you may not use this file except in compliance with the License.
     5  # You may obtain a copy of the License at
     6  #
     7  #     http://www.apache.org/licenses/LICENSE-2.0
     8  #
     9  # Unless required by applicable law or agreed to in writing, software
    10  # distributed under the License is distributed on an "AS IS" BASIS,
    11  # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  # See the License for the specific language governing permissions and
    13  # limitations under the License.
    14  
    15  apiVersion: apps/v1
    16  kind: Deployment
    17  metadata:
    18    namespace: default
    19    name: tide
    20    labels:
    21      app: tide
    22  spec:
    23    replicas: 1 # Do not scale up.
    24    strategy:
    25      type: Recreate
    26    selector:
    27      matchLabels:
    28        app: tide
    29    template:
    30      metadata:
    31        labels:
    32          app: tide
    33      spec:
    34        serviceAccountName: tide
    35        containers:
    36        - name: tide
    37          image: gcr.io/k8s-prow/tide:v20240517-ea10bd814
    38          args:
    39          - --dry-run=false
    40          - --github-endpoint=http://ghproxy
    41          - --github-endpoint=https://api.github.com
    42          - --github-token-path=/etc/github/oauth
    43          - --config-path=/etc/config/config.yaml
    44          - --job-config-path=/etc/job-config
    45          - --history-uri=gs://k8s-prow/tide-history.json
    46          - --status-path=gs://k8s-prow/tide-status-checkpoint.yaml
    47          ports:
    48          - name: http
    49            containerPort: 8888
    50          - name: metrics
    51            containerPort: 9090
    52          volumeMounts:
    53          - name: oauth
    54            mountPath: /etc/github
    55            readOnly: true
    56          - name: config
    57            mountPath: /etc/config
    58            readOnly: true
    59          - name: job-config
    60            mountPath: /etc/job-config
    61            readOnly: true
    62        volumes:
    63        - name: oauth
    64          secret:
    65            secretName: oauth-token
    66        - name: config
    67          configMap:
    68            name: config
    69        - name: job-config
    70          configMap:
    71            name: job-config