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