sigs.k8s.io/prow@v0.0.0-20240503223140-c5e374dc7eb1/test/integration/config/prow/cluster/webhook_server_deployment.yaml (about) 1 # Copyright 2016 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: webhook-server 20 labels: 21 app: webhook-server 22 spec: 23 replicas: 1 24 strategy: 25 type: RollingUpdate 26 rollingUpdate: 27 maxSurge: 1 28 maxUnavailable: 1 29 selector: 30 matchLabels: 31 app: webhook-server 32 template: 33 metadata: 34 labels: 35 app: webhook-server 36 spec: 37 serviceAccountName: webhook-server 38 terminationGracePeriodSeconds: 30 39 containers: 40 - name: webhook-server 41 image: localhost:5001/webhook-server 42 imagePullPolicy: Always 43 ports: 44 - name: http 45 containerPort: 8008 46 args: 47 - --config-path=/etc/config/config.yaml 48 - --filesys-path=./prowjob-webhook-ca-cert 49 volumeMounts: 50 - name: config 51 mountPath: /etc/config 52 readOnly: true 53 livenessProbe: 54 httpGet: 55 path: /healthz 56 port: 8081 57 initialDelaySeconds: 1 58 periodSeconds: 3 59 readinessProbe: 60 httpGet: 61 path: /healthz/ready 62 port: 8081 63 initialDelaySeconds: 3 64 periodSeconds: 3 65 timeoutSeconds: 30 66 volumes: 67 - name: config 68 configMap: 69 name: config