sigs.k8s.io/prow@v0.0.0-20240503223140-c5e374dc7eb1/test/integration/config/prow/cluster/hook_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: hook
    20    labels:
    21      app: hook
    22  spec:
    23    replicas: 1
    24    strategy:
    25      type: RollingUpdate
    26      rollingUpdate:
    27        maxSurge: 1
    28        maxUnavailable: 1
    29    selector:
    30      matchLabels:
    31        app: hook
    32    template:
    33      metadata:
    34        labels:
    35          app: hook
    36      spec:
    37        serviceAccountName: hook
    38        terminationGracePeriodSeconds: 180
    39        containers:
    40        - name: hook
    41          image: localhost:5001/hook
    42          imagePullPolicy: Always
    43          args:
    44          - --dry-run=false
    45          - --github-endpoint=http://fakeghserver
    46          - --github-token-path=/etc/github/oauth
    47          - --config-path=/etc/config/config.yaml
    48          - --plugin-config=/etc/plugins/plugins.yaml
    49          - --hmac-secret-file=/etc/webhook/hmac
    50          ports:
    51            - name: http
    52              containerPort: 8888
    53          volumeMounts:
    54          - name: hmac
    55            mountPath: /etc/webhook
    56            readOnly: true
    57          - name: oauth
    58            mountPath: /etc/github
    59            readOnly: true
    60          - name: config
    61            mountPath: /etc/config
    62            readOnly: true
    63          - name: plugins
    64            mountPath: /etc/plugins
    65            readOnly: true
    66          livenessProbe:
    67            httpGet:
    68              path: /healthz
    69              port: 8081
    70            initialDelaySeconds: 3
    71            periodSeconds: 3
    72          readinessProbe:
    73            httpGet:
    74              path: /healthz/ready
    75              port: 8081
    76            initialDelaySeconds: 10
    77            periodSeconds: 3
    78            timeoutSeconds: 600
    79        volumes:
    80        - name: hmac
    81          secret:
    82            secretName: hmac-token
    83        - name: oauth
    84          secret:
    85            secretName: oauth-token
    86        - name: config
    87          configMap:
    88            name: config
    89        - name: plugins
    90          configMap:
    91            name: plugins