blob: 1d3342d29770dd04106a76d81c589a2d42aec12f [file] [log] [blame]
apiVersion: v1
kind: Service
metadata:
labels:
app: skottie-internal
name: skottie-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: skottie-internal
type: NodePort
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: skottie-internal
spec:
replicas: 2
strategy:
type: RollingUpdate
template:
metadata:
labels:
app: skottie-internal
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: skottie-internal
image: gcr.io/skia-public/skottie:63d477cd99b0706262a284a03cba859d0f19d638
args:
- "--logtostderr"
- "--locked_down"
- "--port=:8000"
- "--prom_port=:20000"
- "--resources_dir=/usr/local/share/skottie/"
- "--skottie_tool=/usr/local/bin/skottie_tool"
ports:
- containerPort: 8000
- containerPort: 20000
volumeMounts:
- name: skia-skottie-internal-sa
mountPath: /var/secrets/google
- name: skia-org-legacy-login-secrets
mountPath: /etc/skia.org/
env:
- name: GOOGLE_APPLICATION_CREDENTIALS
value: /var/secrets/google/key.json
resources:
requests:
memory: "100M"
cpu: "500m"
limits:
memory: "10G"
cpu: "6"
readinessProbe:
httpGet:
path: /healthz
port: 8000
initialDelaySeconds: 1
periodSeconds: 10
volumes:
- name: skia-skottie-internal-sa
secret:
secretName: skia-skottie-internal
- name: skia-org-legacy-login-secrets
secret:
secretName: skia-org-legacy-login-secrets