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

     1  # Copyright 2021 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: cherrypicker
    20    labels:
    21      app: cherrypicker
    22  spec:
    23    replicas: 1
    24    strategy:
    25      type: RollingUpdate
    26      rollingUpdate:
    27        maxSurge: 1
    28        maxUnavailable: 1
    29    selector:
    30      matchLabels:
    31        app: cherrypicker
    32    template:
    33      metadata:
    34        labels:
    35          app: cherrypicker
    36      spec:
    37        serviceAccountName: ""
    38        serviceAccount: ""
    39        terminationGracePeriodSeconds: 180
    40        containers:
    41        - name: cherrypicker
    42          image: gcr.io/k8s-prow/cherrypicker:v20240517-ea10bd814
    43          imagePullPolicy: Always
    44          args:
    45          - --github-token-path=/etc/github/token
    46          - --github-endpoint=http://ghproxy
    47          - --github-endpoint=https://api.github.com
    48          - --dry-run=false
    49          ports:
    50            - name: http
    51              containerPort: 8888
    52          volumeMounts:
    53          - name: hmac
    54            mountPath: /etc/webhook
    55            readOnly: true
    56          - name: github-token
    57            mountPath: /etc/github
    58            readOnly: true
    59          - name: tmp
    60            mountPath: /tmp
    61        volumes:
    62        - name: tmp
    63          emptyDir: {}
    64        - name: hmac
    65          secret:
    66            secretName: hmac-token
    67        - name: github-token
    68          secret:
    69            secretName: k8s-infra-cherrypick-robot-github-token