blob: ea5be9eee5d73f5e12f20dd51f0f8c98c1c7a9cc [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"}}'
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:2018-12-26T14_33_26Z-jcgregorio-617e0f1-dirty
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: {}