blob: 6883ee259dc010d662b375a1ed4d924293bc38f3 [file] [log] [blame]
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: gold-chrome-gpu-ingestion
spec:
serviceName: "gold-chrome-gpu-ingestion"
replicas: 1
selector:
matchLabels:
app: gold-chrome-gpu-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-chrome-gpu-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-chrome-gpuingestion-ingestion
image: gcr.io/skia-public/gold-ingestion:2018-12-07T20_48_45Z-stephana-ec5d7d6-clean
args:
- "--config_filename=/etc/gold-ingestion/gold-chrome-gpu-ingestion-config.json5"
- "--namespace=gold-chrome-gpu"
- "--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-chrome-gpu-ingestion-config-volume
mountPath: /etc/gold-ingestion
- name: gold-chrome-gpu-ingestion-storage-volume
mountPath: /data
- name: gold-service-account-secrets
mountPath: /etc/gold-config/
resources:
limits:
memory: "4Gi"
cpu: 2
readinessProbe:
httpGet:
path: /ready
port: 9091
initialDelaySeconds: 30
periodSeconds: 10
volumes:
- name: gold-chrome-gpu-ingestion-config-volume
configMap:
defaultMode: 420
name: gold-chrome-gpu-ingestion-config
- name: gold-service-account-secrets
secret:
secretName: gold-service-account-secrets
volumeClaimTemplates:
- metadata:
name: gold-chrome-gpu-ingestion-storage-volume
spec:
storageClassName: ssd-disk
accessModes: [ "ReadWriteOnce" ]
resources:
requests:
storage: 100Gi