| apiVersion: v1 |
| kind: Service |
| metadata: |
| labels: |
| app: continuous-deploy |
| name: continuous-deploy |
| spec: |
| ports: |
| - name: metrics |
| port: 20000 |
| selector: |
| app: continuous-deploy |
| type: NodePort |
| --- |
| apiVersion: apps/v1beta1 |
| kind: Deployment |
| metadata: |
| name: continuous-deploy |
| spec: |
| replicas: 1 |
| template: |
| metadata: |
| labels: |
| app: continuous-deploy |
| annotations: |
| prometheus.io.scrape: "true" |
| prometheus.io.port: "20000" |
| spec: |
| serviceAccountName: continuous |
| automountServiceAccountToken: true |
| securityContext: |
| runAsUser: 2000 # aka skia |
| fsGroup: 2000 # aka skia |
| containers: |
| - name: continuous-deploy |
| image: gcr.io/skia-public/continuous-deploy:2019-04-08T14_16_39Z-rmistry-cfbdc64-clean |
| args: |
| - "--logtostderr" |
| - "--prom_port=:20000" |
| - "skottie" |
| - "debugger" |
| - "debugger-assets" |
| - "jsfiddle" |
| - "fiddler" |
| - "particles" |
| - "api" |
| ports: |
| - containerPort: 20000 |
| volumeMounts: |
| - name: skia-continuous-deploy-sa |
| mountPath: /var/secrets/google |
| env: |
| - name: GOOGLE_APPLICATION_CREDENTIALS |
| value: /var/secrets/google/key.json |
| resources: |
| requests: |
| memory: "10Mi" |
| cpu: "10m" |
| readinessProbe: |
| httpGet: |
| path: /metrics |
| port: 20000 |
| initialDelaySeconds: 1 |
| periodSeconds: 3 |
| volumes: |
| - name: skia-continuous-deploy-sa |
| secret: |
| secretName: skia-continuous-deploy |