github.com/jenkins-x/test-infra@v0.0.7/prow/cluster/deck_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: deck 20 labels: 21 app: deck 22 spec: 23 replicas: 3 24 strategy: 25 type: RollingUpdate 26 rollingUpdate: 27 maxSurge: 1 28 maxUnavailable: 1 29 template: 30 metadata: 31 labels: 32 app: deck 33 spec: 34 # serviceAccountName: "deck" # Uncomment for use with RBAC 35 terminationGracePeriodSeconds: 30 36 containers: 37 - name: deck 38 image: gcr.io/k8s-prow/deck:v20181218-8eb6f41 39 imagePullPolicy: Always 40 ports: 41 - name: http 42 containerPort: 8080 43 args: 44 - --build-cluster=/etc/cluster/cluster 45 - --tide-url=http://tide/ 46 - --hook-url=http://hook:8888/plugin-help 47 - --redirect-http-to=prow.k8s.io 48 - --oauth-url=/github-login 49 - --job-config-path=/etc/job-config 50 - --spyglass=true 51 volumeMounts: 52 - name: oauth-config 53 mountPath: /etc/github 54 readOnly: true 55 - name: cookie-secret 56 mountPath: /etc/cookie 57 readOnly: true 58 - mountPath: /etc/cluster 59 name: cluster 60 readOnly: true 61 - name: config 62 mountPath: /etc/config 63 readOnly: true 64 - name: job-config 65 mountPath: /etc/job-config 66 readOnly: true 67 volumes: 68 - name: oauth-config 69 secret: 70 secretName: github-oauth-config 71 - name: cookie-secret 72 secret: 73 secretName: cookie 74 - name: cluster 75 secret: 76 defaultMode: 420 77 secretName: build-cluster 78 - name: config 79 configMap: 80 name: config 81 - name: job-config 82 configMap: 83 name: job-config