blob: 18ee421b5890c292c97aab4ea0dd0e744da06810 [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"}}'
skia.org.domain: status.skia.org
spec:
selector:
app: status
type: NodePort
ports:
- port: 8000
name: http
- port: 20000
name: metrics
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: status
labels:
app: status
spec:
replicas: 1
selector:
matchLabels:
app: status
strategy:
type: RollingUpdate
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/status:2019-09-25T18_53_20Z-borenet-ba7e1f0-clean
args:
- "--chrome_infra_auth_jwt=/var/secrets/skia-public-auth/key.json"
- "--bigtable_project=skia-public"
- "--bigtable_instance=production"
- "--capacity_recalculate_interval=30m"
- "--firestore_instance=production"
- "--host=status.skia.org"
- "--logtostderr"
- "--port=:8000"
- "--prom_port=:20000"
- "--repo=https://skia.googlesource.com/skia.git"
- "--repo=https://skia.googlesource.com/buildbot.git"
- "--repo=https://skia.googlesource.com/lottie-ci.git"
- "--repo=https://skia.googlesource.com/skcms.git"
- "--resources_dir=/usr/local/share/status"
- "--swarming_url=https://chromium-swarm.appspot.com"
- "--task_scheduler_url=https://task-scheduler.skia.org"
ports:
- containerPort: 8000
- containerPort: 20000
volumeMounts:
- 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
- name: POD_ID
valueFrom:
fieldRef:
fieldPath: metadata.name
resources:
requests:
memory: "8Gi"
cpu: 2
limits:
memory: "16Gi"
cpu: 16
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 30
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