github.com/abayer/test-infra@v0.0.5/velodrome/fetcher/deployment.yaml (about)

     1  apiVersion: extensions/v1beta1
     2  kind: Deployment
     3  metadata:
     4    name: fetcher-${PROJECT}-${GH_ORGANIZATION}-${GH_REPOSITORY}
     5    labels:
     6      app: fetcher
     7      project: ${PROJECT}
     8      gh-organization: ${GH_ORGANIZATION}
     9      gh-repository: ${GH_REPOSITORY}
    10  spec:
    11    replicas: 1
    12    template:
    13      metadata:
    14        labels:
    15          app: fetcher
    16          project: ${PROJECT}
    17          gh-organization: ${GH_ORGANIZATION}
    18          gh-repository: ${GH_REPOSITORY}
    19      spec:
    20        containers:
    21        - name: fetcher
    22          args:
    23          - --organization=${GH_ORGANIZATION}
    24          - --project=${GH_REPOSITORY}
    25          - --token-file=/etc/secret-volume/k8s-merge-robot
    26          - --stderrthreshold=0
    27          - --host=sqlproxy
    28          - --user=$(MYSQL_WRITER_USER)
    29          - --password=$(MYSQL_WRITER_PASS)
    30          image: k8s.gcr.io/github-fetcher:v20170327-143731
    31          resources:
    32            requests:
    33              cpu: 0m
    34          volumeMounts:
    35          - mountPath: /etc/secret-volume
    36            readOnly: true
    37            name: github-tokens-secret
    38          env:
    39          - name: MYSQL_WRITER_USER
    40            valueFrom:
    41              secretKeyRef:
    42                name: sqlproxy
    43                key: writer-user
    44          - name: MYSQL_WRITER_PASS
    45            valueFrom:
    46              secretKeyRef:
    47                name: sqlproxy
    48                key: writer-pass
    49        volumes:
    50        - name: github-tokens-secret
    51          secret:
    52            secretName: github-tokens