blob: 41873af72865817b6f2465a8e75df2ad8925bbe8 [file] [log] [blame]
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-01-04T14_01_57Z-jcgregorio-db46450-dirty
args:
- "--logtostderr"
- "--prom_port=:20000"
- "skottie"
- "debugger"
- "jsfiddle"
- "fiddler"
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