blob: bfec4a9b93903795cbcd8b7a7e165aa62b4201ea [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
labels:
app: autoroll-fe-internal
name: autoroll-fe-internal
annotations:
beta.cloud.google.com/backend-config: '{"ports": {"8000":"skia-default-backendconfig"}}'
spec:
ports:
- name: metrics
port: 20000
- name: http
port: 8000
selector:
app: autoroll-fe-internal
type: NodePort
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: autoroll-fe-internal
spec:
replicas: 1
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: autoroll-fe-internal
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: autoroll-fe-internal
image: gcr.io/skia-public/autoroll-fe:2019-01-29T14_27_18Z-borenet-11e05c1-clean
args:
- "--logtostderr"
- "--config_dir=/usr/local/share/autoroll/internal-config"
- "--host=autoroll-internal2.skia.org"
- "--internal"
- "--port=:8000"
- "--prom_port=:20000"
- "--resources_dir=/usr/local/share/autoroll"
ports:
- containerPort: 8000
- containerPort: 20000
volumeMounts:
- name: autoroll-fe-internal-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:
requests:
memory: "10Mi"
cpu: "10m"
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 10
periodSeconds: 3
failureThreshold: 10
volumes:
- name: autoroll-fe-internal-sa
secret:
secretName: autoroll-fe-internal
- name: skia-public-auth
secret:
secretName: skia-public-auth
- name: skia-org-legacy-login-secrets
secret:
secretName: skia-org-legacy-login-secrets