blob: 41334536b6d9aee6c2c8224230385e872bad641b [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
labels:
app: dotserver
name: dotserver
annotations:
beta.cloud.google.com/backend-config: '{"ports": {"8000":"skia-default-backendconfig"}}'
skia.org.domain: dot.skia.org
spec:
ports:
- name: metrics
port: 20000
- name: http
port: 8000
selector:
app: dotserver
type: NodePort
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: dotserver
spec:
replicas: 2
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: dotserver
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: dotserver
image: gcr.io/skia-public/dotserver:2019-11-27T21_01_32Z-jcgregorio-e5e4fcd-clean
args:
- "--logtostderr"
- "--port=:8000"
- "--prom_port=:20000"
ports:
- containerPort: 20000
- containerPort: 8000
resources:
requests:
memory: "100Mi"
cpu: "50m"
readinessProbe:
httpGet:
path: /metrics
port: 20000
initialDelaySeconds: 1
periodSeconds: 3