blob: 5838a1217cc82dab653331d922a6fae78ee646a9 [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
labels:
app: gold-flutter-engine-baselineserver
name: gold-flutter-engine-baselineserver
spec:
ports:
- name: http
port: 8000
- name: metrics
port: 20000
selector:
app: gold-flutter-engine-baselineserver
type: NodePort
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: gold-flutter-engine-baselineserver
spec:
replicas: 3
selector:
matchLabels:
app: gold-flutter-engine-baselineserver
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: gold-flutter-engine-baselineserver
appgroup: gold-flutter-engine
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: gold-flutter-engine-baselineserver
image: gcr.io/skia-public/gold-baseline-server:2019-09-23T15_32_41Z-kjlubick-be851a0-clean
args:
- "--fs_namespace=flutter-engine"
- "--fs_project_id=skia-firestore"
- "--hashes_gs_path=skia-gold-flutter-engine/hash_files/gold-flutter-engine-hashes.txt"
- "--logtostderr"
- "--primary_crs=github"
- "--port=:8000"
- "--prom_port=:20000"
ports:
- containerPort: 8000
name: http
- containerPort: 20000
name: prom
volumeMounts:
- name: gold-service-account-secrets
mountPath: /etc/gold-config/
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /etc/gold-config/service-account.json
resources:
requests:
memory: "500Mi"
cpu: "500m"
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 5
periodSeconds: 3
volumes:
- name: gold-service-account-secrets
secret:
secretName: gold-service-account-secrets