github.com/zppinho/prow@v0.0.0-20240510014325-1738badeb017/test/integration/config/prow/cluster/horologium_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: horologium
    20    labels:
    21      app: horologium
    22  spec:
    23    replicas: 1 # Do not scale up.
    24    strategy:
    25      type: Recreate
    26    selector:
    27      matchLabels:
    28        app: horologium
    29    template:
    30      metadata:
    31        labels:
    32          app: horologium
    33      spec:
    34        serviceAccountName: horologium
    35        terminationGracePeriodSeconds: 30
    36        containers:
    37        - name: horologium
    38          image: localhost:5001/horologium
    39          args:
    40          - --config-path=/etc/config/config.yaml
    41          - --job-config-path=/etc/job-config
    42          - --dry-run=false
    43          volumeMounts:
    44          - name: config
    45            mountPath: /etc/config
    46            readOnly: true
    47          - name: job-config
    48            mountPath: /etc/job-config
    49            readOnly: true
    50        volumes:
    51        - name: config
    52          configMap:
    53            name: config
    54        - name: job-config
    55          configMap:
    56            name: job-config