blob: 1af4b9368332dfb1af013b76c85a612358ec0ce6 [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
name: status
labels:
app: status
annotations:
beta.cloud.google.com/backend-config: '{"ports": {"8000":"skia-default-backendconfig"}}'
spec:
selector:
app: status
type: NodePort
ports:
- port: 8000
name: http
- port: 20000
name: metrics
---
apiVersion: apps/v1beta1
kind: StatefulSet
metadata:
name: status
spec:
replicas: 1
selector:
matchLabels:
app: status
updateStrategy:
type: RollingUpdate
serviceName: "status"
template:
metadata:
labels:
app: status
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
automountServiceAccountToken: false
containers:
- name: status
image: gcr.io/skia-public/statusk:2018-09-28T17_04_42Z-borenet-29ae1e0-clean
args:
- "--logtostderr"
- "--capacity_recalculate_interval=30m"
- "--host=status.skia.org"
- "--port=:8000"
- "--prom_port=:20000"
- "--recipes_cfg=/usr/local/share/status/recipes.cfg"
- "--resources_dir=/usr/local/share/status"
- "--task_db_url=https://task-scheduler.skia.org/db/"
- "--use_metadata=true"
- "--workdir=/mnt/status/workdir"
ports:
- containerPort: 8000
- containerPort: 20000
volumeMounts:
- name: status-storage
mountPath: /mnt/status
- name: skia-status-sa
mountPath: /var/secrets/google
- name: skia-public-auth
mountPath: /var/secrets/skia-public-auth
- name: skia-org-legacy-login-secrets
mountPath: /etc/skia.org/
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/key.json
resources:
limits:
memory: "8Gi"
cpu: 1
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 180
periodSeconds: 3
volumes:
- name: skia-status-sa
secret:
secretName: skia-status
- name: skia-public-auth
secret:
secretName: skia-public-auth
- name: skia-org-legacy-login-secrets
secret:
secretName: skia-org-legacy-login-secrets
volumeClaimTemplates:
- metadata:
name: status-storage
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 200Gi