blob: 1279840432ab9aec06649aa06a6ea2df1af23bda [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
labels:
app: push
name: push
annotations:
beta.cloud.google.com/backend-config: '{"ports": {"8000":"skia-default-backendconfig"}}'
skia.org.domain: push.skia.org
spec:
ports:
- name: http
port: 8000
selector:
app: push
type: NodePort
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: push
spec:
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: push
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: push
image: gcr.io/skia-public/push:2019-06-12T20_11_23Z-jcgregorio-196d4c0-clean
args:
- "--logtostderr"
- "--port=:8000"
- "--prom_port=:20000"
- "--config_filename=/etc/push/skiapush.json5"
- "--resources_dir=/usr/local/share/push/"
ports:
- containerPort: 20000
- containerPort: 8000
volumeMounts:
- name: skia-push
mountPath: /var/secrets/google
- name: csrf-salt
mountPath: /var/skia/
- name: skia-org-legacy-login-secrets
mountPath: /etc/skia.org/
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/key.json
resources:
requests:
memory: "10Mi"
cpu: "50m"
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 30
periodSeconds: 5
livenessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 30
periodSeconds: 5
volumes:
- name: skia-push
secret:
secretName: skia-push
- name: csrf-salt
secret:
secretName: csrf-salt
- name: skia-org-legacy-login-secrets
secret:
secretName: skia-org-legacy-login-secrets