Every chart now renders its container resources through a duplicated _helpers.tpl helper (reference implementation in template-chart): requests ship as chart defaults, missing memory and ephemeral-storage limits are computed as resources.limitFactor x the request (default 3, satisfactory keeps 2 to preserve its previously published 8Gi limit), an explicitly set limit always wins, and a CPU limit is only rendered when set explicitly. Fixed limit defaults are removed from all values.yaml files; teamspeak-server gains a values-driven resources block instead of hardcoded template values. Major version bump for all published charts.
71 lines
2.5 KiB
YAML
71 lines
2.5 KiB
YAML
apiVersion: apps/v1
|
|
kind: StatefulSet
|
|
metadata:
|
|
name: "{{ .Release.Name }}-{{ .Chart.Name }}-sfs"
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: "{{ .Release.Name }}-{{ .Chart.Name }}-sfs"
|
|
serviceName: "{{ .Release.Name }}-{{ .Chart.Name }}-service"
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: "{{ .Release.Name }}-{{ .Chart.Name }}-sfs"
|
|
spec:
|
|
securityContext:
|
|
{{- toYaml .Values.zipline.securityContext.pod | nindent 8 }}
|
|
containers:
|
|
- name: "{{ .Release.Name }}-{{ .Chart.Name }}-sfs"
|
|
image: "ghcr.io/diced/zipline:{{ .Chart.AppVersion }}"
|
|
securityContext:
|
|
{{- toYaml .Values.zipline.securityContext.container | nindent 12 }}
|
|
env:
|
|
- name: DATABASE_URL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ .Release.Name }}-{{ .Chart.Name }}-db-secret
|
|
key: connection-url
|
|
- name: CORE_DEFAULT_DOMAIN
|
|
value: "{{ .Values.config.domain }}"
|
|
- name: CORE_SECRET
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: {{ .Release.Name }}-{{ .Chart.Name }}-core-secret
|
|
key: server-secret
|
|
- name: UPLOADER_ADMIN_LIMIT
|
|
value: 500mb
|
|
resources:
|
|
{{- include "zipline.resources" .Values.zipline.resources | nindent 12 }}
|
|
ports:
|
|
- name: "zipline-server"
|
|
containerPort: 3000
|
|
protocol: TCP
|
|
livenessProbe:
|
|
{{- toYaml .Values.zipline.livenessProbe | nindent 12 }}
|
|
readinessProbe:
|
|
{{- toYaml .Values.zipline.readinessProbe | nindent 12 }}
|
|
startupProbe:
|
|
{{- toYaml .Values.zipline.startupProbe | nindent 12 }}
|
|
volumeMounts:
|
|
- name: zipline-volume
|
|
mountPath: /zipline/uploads
|
|
subPath: uploads/
|
|
- name: zipline-volume
|
|
mountPath: /zipline/public
|
|
subPath: public/
|
|
- name: zipline-volume
|
|
mountPath: /zipline/themes
|
|
subPath: themes/
|
|
# Zipline writes temporary chunks/files below /tmp; with a
|
|
# read-only root filesystem this must be a writable emptyDir.
|
|
- name: tmp
|
|
mountPath: /tmp
|
|
automountServiceAccountToken: false
|
|
volumes:
|
|
- name: tmp
|
|
emptyDir: {}
|
|
- name: zipline-volume
|
|
persistentVolumeClaim:
|
|
claimName: {{ .Release.Name }}-{{ .Chart.Name }}-vc
|