github.com/zppinho/prow@v0.0.0-20240510014325-1738badeb017/test/integration/config/prow/cluster/tide_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: 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: localhost:5001/tide
    38          args:
    39          - --dry-run=true
    40          - --github-endpoint=http://fakeghserver
    41          - --github-token-path=/etc/github/oauth
    42          - --config-path=/etc/config/config.yaml
    43          - --job-config-path=/etc/job-config
    44          - --history-uri=/tmp/tide-history.json
    45          - --status-path=/tmp/tide-status-checkpoint.yaml
    46          - --moonraker-address=http://moonraker.default
    47          ports:
    48          - name: http
    49            containerPort: 8888
    50          volumeMounts:
    51          - name: oauth
    52            mountPath: /etc/github
    53            readOnly: true
    54          - name: config
    55            mountPath: /etc/config
    56            readOnly: true
    57          - name: job-config
    58            mountPath: /etc/job-config
    59            readOnly: true
    60        volumes:
    61        - name: oauth
    62          secret:
    63            secretName: oauth-token
    64        - name: config
    65          configMap:
    66            name: config
    67        - name: job-config
    68          configMap:
    69            name: job-config