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