blob: 6d0e0f2c96b7c04d33962e111cba20ab7faa9ae3 [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:3999f1076247c1a6c602d32110d6f6f833bee70a
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