blob: b320e08ee8aa7a9b97c9eff4c6c2e2fd86f049c6 [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
labels:
app: fiddler
name: fiddler
spec:
ports:
- name: http
port: 8000
selector:
app: fiddler
type: NodePort
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: fiddler
spec:
replicas: 100
strategy:
type: RollingUpdate
rollingUpdate:
maxUnavailable: 5
template:
metadata:
labels:
app: fiddler
appgroup: fiddle
spec:
terminationGracePeriodSeconds: 1
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: fiddler
image: gcr.io/skia-public/fiddler:402bf74ea87105429fd2048a016fa2445ea3fcab
args:
- "--checkout=/tmp/skia/skia/"
- "--fiddle_root=/tmp"
- "--logtostderr"
- "--port=:8000"
ports:
- containerPort: 8000
resources:
requests:
memory: "2Gi"
cpu: "2"
limits:
memory: "6Gi"
cpu: "8"
securityContext:
allowPrivilegeEscalation: false
capabilities:
add:
- SYS_PTRACE
livenessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 1
periodSeconds: 2