blob: 01bebbb56e857b0ede15c2275690c3ec10bb92a3 [file] [log] [blame]
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: gold-lottie-ingestion
spec:
serviceName: "gold-lottie-ingestion"
replicas: 1
selector:
matchLabels:
app: gold-lottie-ingestion # Label selector that determines which Pods belong to the StatefulSet
# Must match spec: template: metadata: labels
updateStrategy:
type: RollingUpdate
template:
metadata:
labels:
app: gold-lottie-ingestion # Pod template's label selector
annotations:
prometheus.io.scrape: "true"
prometheus.io.port: "20000"
spec:
automountServiceAccountToken: false
securityContext:
runAsUser: 2000 # aka skia
fsGroup: 2000 # aka skia
containers:
- name: gold-lottie-ingestion
image: gcr.io/skia-public/gold-ingestion:2018-12-03T18_56_03Z-stephana-8095b0d-clean
args:
- "--config_filename=/etc/gold-ingestion/gold-lottie-ingestion-config.json5"
- "--namespace=gold-lottie"
- "--http_port=:9091"
- "--logtostderr"
- "--no_cloud_log"
- "--project_id=skia-public"
- "--prom_port=:20000"
- "--service_account_file=/etc/gold-config/service-account.json"
ports:
- containerPort: 9091
name: http-health
volumeMounts:
- name: gold-lottie-ingestion-config-volume
mountPath: /etc/gold-ingestion
- name: gold-lottie-ingestion-storage-volume
mountPath: /data
- name: gold-service-account-secrets
mountPath: /etc/gold-config/
resources:
limits:
memory: "2Gi"
cpu: 1
readinessProbe:
httpGet:
path: /ready
port: 9091
initialDelaySeconds: 30
periodSeconds: 10
volumes:
- name: gold-lottie-ingestion-config-volume
configMap:
defaultMode: 420
name: gold-lottie-ingestion-config
- name: gold-service-account-secrets
secret:
secretName: gold-service-account-secrets
volumeClaimTemplates:
- metadata:
name: gold-lottie-ingestion-storage-volume
spec:
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 20Gi