blob: f0b20bfb22437124cdee100619c3fe817e829c37 [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
labels:
app: debugger
name: debugger
annotations:
beta.cloud.google.com/backend-config: '{"ports": {"8000":"skia-default-backendconfig"}}'
spec:
ports:
- name: metrics
port: 20000
- name: http
port: 8000
selector:
app: debugger
type: NodePort
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: debugger
spec:
replicas: 1
template:
metadata:
labels:
app: debugger
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: debugger
image: gcr.io/skia-public/debugger:b6e9d3c788ab2cf22df7e7d7e7b6aa212a8a3217
args:
- "--logtostderr"
- "--port=:8000"
- "--prom_port=:20000"
- "--resources_dir=/usr/local/share/debugger"
ports:
- containerPort: 20000
- containerPort: 8000
resources:
requests:
memory: "20Gi"
cpu: "6"
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 3
periodSeconds: 3