github.com/abayer/test-infra@v0.0.5/velodrome/transform/deployment.yaml (about) 1 apiVersion: extensions/v1beta1 2 kind: Deployment 3 metadata: 4 name: transform-${PROJECT}-${GH_ORGANIZATION}-${GH_REPOSITORY}-${TRANSFORM_METRIC} 5 labels: 6 app: transform 7 project: ${PROJECT} 8 gh-organization: ${GH_ORGANIZATION} 9 gh-repository: ${GH_REPOSITORY} 10 transform-plugin: ${TRANSFORM_PLUGIN} 11 transform-metric: ${TRANSFORM_METRIC} 12 spec: 13 replicas: 1 14 template: 15 metadata: 16 labels: 17 app: transform 18 project: ${PROJECT} 19 gh-organization: ${GH_ORGANIZATION} 20 gh-repository: ${GH_REPOSITORY} 21 transform-plugin: ${TRANSFORM_PLUGIN} 22 transform-metric: ${TRANSFORM_METRIC} 23 spec: 24 containers: 25 - name: transform 26 args: 27 - --repository=${GH_ORGANIZATION}/${GH_REPOSITORY} 28 - --stderrthreshold=0 29 - --host=sqlproxy 30 - --user=$(MYSQL_READER_USER) 31 - --password=$(MYSQL_READER_PASS) 32 - --influx-host=http://influxdb-${PROJECT}:8086 33 - --influx-password=$(INFLUXDB_ROOT_PWD) 34 - --name=${TRANSFORM_METRIC} 35 - ${TRANSFORM_PLUGIN} 36 # plugin args should be appended here. 37 image: k8s.gcr.io/github-transform:v20170323-155737 38 resources: 39 requests: 40 cpu: 0m 41 env: 42 - name: INFLUXDB_ROOT_PWD 43 valueFrom: 44 secretKeyRef: 45 name: influxdb-${PROJECT} 46 key: rootpassword 47 - name: MYSQL_READER_USER 48 valueFrom: 49 secretKeyRef: 50 name: sqlproxy 51 key: reader-user 52 - name: MYSQL_READER_PASS 53 valueFrom: 54 secretKeyRef: 55 name: sqlproxy 56 key: reader-pass