github.com/shashidharatd/test-infra@v0.0.0-20171006011030-71304e1ca560/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        terminationGracePeriodSeconds: 180
    34        containers:
    35        - name: hook
    36          image: gcr.io/k8s-prow/hook:0.170
    37          imagePullPolicy: Always
    38          args:
    39          - --dry-run=false
    40          - --slack-token-file=/etc/slack/token
    41          ports:
    42            - name: http
    43              containerPort: 8888
    44          volumeMounts:
    45          - name: slack
    46            mountPath: /etc/slack
    47          - name: hmac
    48            mountPath: /etc/webhook
    49            readOnly: true
    50          - name: oauth
    51            mountPath: /etc/github
    52            readOnly: true
    53          - name: config
    54            mountPath: /etc/config
    55            readOnly: true
    56          - name: plugins
    57            mountPath: /etc/plugins
    58            readOnly: true
    59        volumes:
    60        - name: slack
    61          secret:
    62            secretName: slack-token
    63        - name: hmac
    64          secret:
    65            secretName: hmac-token
    66        - name: oauth
    67          secret:
    68            secretName: oauth-token
    69        - name: config
    70          configMap:
    71            name: config
    72        - name: plugins
    73          configMap:
    74            name: plugins