github.com/shashidharatd/test-infra@v0.0.0-20171006011030-71304e1ca560/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 name: deck 19 labels: 20 app: deck 21 spec: 22 replicas: 3 23 strategy: 24 type: RollingUpdate 25 rollingUpdate: 26 maxSurge: 1 27 maxUnavailable: 1 28 template: 29 metadata: 30 labels: 31 app: deck 32 spec: 33 terminationGracePeriodSeconds: 30 34 containers: 35 - name: deck 36 image: gcr.io/k8s-prow/deck:0.52 37 imagePullPolicy: Always 38 ports: 39 - name: http 40 containerPort: 8080 41 args: 42 - --jenkins-url=$(JENKINS_URL) 43 - --jenkins-token-file=/etc/jenkins/jenkins 44 - --build-cluster=/etc/cluster/cluster 45 env: 46 - name: JENKINS_URL 47 valueFrom: 48 configMapKeyRef: 49 key: jenkins-address 50 name: jenkins-address 51 volumeMounts: 52 - mountPath: /etc/jenkins 53 name: jenkins 54 readOnly: true 55 - mountPath: /etc/cluster 56 name: cluster 57 readOnly: true 58 - name: config 59 mountPath: /etc/config 60 readOnly: true 61 volumes: 62 - name: jenkins 63 secret: 64 defaultMode: 420 65 secretName: jenkins-token 66 - name: cluster 67 secret: 68 defaultMode: 420 69 secretName: build-cluster 70 - name: config 71 configMap: 72 name: config