blob: cfc329eac31c8a2ee7a07df171b6ead7a39dd618 [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
labels:
app: jsdoc
name: jsdoc
annotations:
beta.cloud.google.com/backend-config: '{"ports": {"8000":"skia-default-backendconfig"}}'
skia.org.domain: jsdoc.skia.org
spec:
ports:
- name: metrics
port: 20000
- name: http
port: 8000
selector:
app: jsdoc
type: NodePort
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: jsdoc
spec:
replicas: 2
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: jsdoc
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: jsdoc
image: gcr.io/skia-public/jsdoc:2019-10-28T12_33_40Z-jcgregorio-32269ba-clean
args:
- "--logtostderr"
- "--port=:8000"
- "--prom_port=:20000"
ports:
- containerPort: 8000
- containerPort: 20000
volumeMounts:
- name: jsdoc-storage
mountPath: /mnt/jsdoc
resources:
requests:
memory: "10Mi"
cpu: "10m"
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 1
periodSeconds: 2
volumes:
- name: jsdoc-storage
emptyDir: {}