k8s.io/test-infra@v0.0.0-20240520184403-27c6b4c223d8/greenhouse/deployment.yaml (about)

     1  # Copyright 2018 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    name: greenhouse
    19    labels:
    20      app: greenhouse
    21  spec:
    22    replicas: 1
    23    selector:
    24      matchLabels:
    25        app: greenhouse
    26    template:
    27      metadata:
    28        labels:
    29          app: greenhouse
    30      spec:
    31        containers:
    32        - name: greenhouse
    33          image: gcr.io/k8s-testimages/greenhouse:latest
    34          imagePullPolicy: Always
    35          ports:
    36          - name: cache
    37            containerPort: 8080
    38          - name: metrics
    39            containerPort: 9090
    40          args:
    41          - --dir=/data
    42          - --min-percent-blocks-free=2
    43          volumeMounts:
    44          - name: cache
    45            mountPath: /data
    46        volumes:
    47        - name: cache
    48          persistentVolumeClaim:
    49            claimName: greenhouse
    50        # run on our dedicated node
    51        tolerations:
    52        - key: "dedicated"
    53          operator: "Equal"
    54          value: "greenhouse"
    55          effect: "NoSchedule"
    56        nodeSelector:
    57          dedicated: "greenhouse"