github.com/abayer/test-infra@v0.0.5/prow/cluster/tot_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: v1 16 kind: PersistentVolume 17 metadata: 18 labels: 19 app: tot 20 name: tot-storage 21 spec: 22 capacity: 23 storage: 1Gi 24 accessModes: 25 - ReadWriteOnce 26 persistentVolumeReclaimPolicy: Retain 27 gcePersistentDisk: 28 pdName: tot-storage 29 fsType: ext4 30 --- 31 kind: PersistentVolumeClaim 32 apiVersion: v1 33 metadata: 34 labels: 35 app: tot 36 name: tot-storage 37 spec: 38 accessModes: 39 - ReadWriteOnce 40 resources: 41 requests: 42 storage: 1Gi 43 --- 44 apiVersion: extensions/v1beta1 45 kind: Deployment 46 metadata: 47 name: tot 48 labels: 49 app: tot 50 spec: 51 replicas: 1 # one canonical source of build numbers 52 template: 53 metadata: 54 labels: 55 app: tot 56 spec: 57 terminationGracePeriodSeconds: 30 58 containers: 59 - name: tot 60 image: gcr.io/k8s-prow/tot:v20180723-3632407bc 61 imagePullPolicy: Always 62 args: 63 - -storage=/store/tot.json 64 - -fallback 65 ports: 66 - name: http 67 containerPort: 8888 68 volumeMounts: 69 - mountPath: /store 70 name: tot-volume 71 volumes: 72 - name: tot-volume 73 persistentVolumeClaim: 74 claimName: tot-storage