blob: aa93f545dbd97017e15a48ab43b958d461a9fd6d [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
name: status-staging
labels:
app: status-staging
annotations:
beta.cloud.google.com/backend-config: '{"ports": {"8000":"skia-default-backendconfig"}}'
skia.org.domain: status-staging.skia.org
spec:
selector:
app: status-staging
type: NodePort
ports:
- port: 8000
name: http
- port: 20000
name: metrics
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: status-staging
labels:
app: status-staging
spec:
replicas: 1
selector:
matchLabels:
app: status-staging
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: status-staging
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
automountServiceAccountToken: false
containers:
- name: status-staging
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=staging"
- "--capacity_recalculate_interval=30m"
- "--firestore_instance=staging"
- "--host=status-staging.skia.org"
- "--logtostderr"
- "--port=:8000"
- "--prom_port=:20000"
- "--repo=https://skia.googlesource.com/skiabot-test.git"
- "--resources_dir=/usr/local/share/status"
- "--swarming_url=https://chromium-swarm-dev.appspot.com"
- "--task_scheduler_url=https://task-scheduler-staging.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