github.com/jenkins-x/test-infra@v0.0.7/prow/cluster/hook_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: extensions/v1beta1 16 kind: Deployment 17 metadata: 18 namespace: default 19 name: hook 20 labels: 21 app: hook 22 spec: 23 replicas: 4 24 strategy: 25 type: RollingUpdate 26 rollingUpdate: 27 maxSurge: 1 28 maxUnavailable: 1 29 template: 30 metadata: 31 labels: 32 app: hook 33 spec: 34 # serviceAccountName: "hook" # Uncomment for use with RBAC 35 terminationGracePeriodSeconds: 180 36 containers: 37 - name: hook 38 image: gcr.io/k8s-prow/hook:v20181218-8eb6f41 39 imagePullPolicy: Always 40 args: 41 - --dry-run=false 42 - --slack-token-file=/etc/slack/token 43 - --github-endpoint=http://ghproxy 44 - --github-endpoint=https://api.github.com 45 - --job-config-path=/etc/job-config 46 ports: 47 - name: http 48 containerPort: 8888 49 volumeMounts: 50 - name: slack 51 mountPath: /etc/slack 52 - name: hmac 53 mountPath: /etc/webhook 54 readOnly: true 55 - name: oauth 56 mountPath: /etc/github 57 readOnly: true 58 - name: config 59 mountPath: /etc/config 60 readOnly: true 61 - name: job-config 62 mountPath: /etc/job-config 63 readOnly: true 64 - name: plugins 65 mountPath: /etc/plugins 66 readOnly: true 67 - name: cat-api 68 mountPath: /etc/cat-api 69 readOnly: true 70 volumes: 71 - name: slack 72 secret: 73 secretName: slack-token 74 - name: hmac 75 secret: 76 secretName: hmac-token 77 - name: oauth 78 secret: 79 secretName: oauth-token 80 - name: config 81 configMap: 82 name: config 83 - name: job-config 84 configMap: 85 name: job-config 86 - name: plugins 87 configMap: 88 name: plugins 89 - name: cat-api 90 configMap: 91 name: cat-api-key