mirror of https://github.com/synctv-org/synctv
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.3 KiB
YAML
49 lines
1.3 KiB
YAML
1 month ago
|
apiVersion: apps/v1
|
||
|
kind: StatefulSet
|
||
|
metadata:
|
||
|
name: synctv
|
||
|
labels:
|
||
|
app: synctv
|
||
|
spec:
|
||
|
selector:
|
||
|
matchLabels:
|
||
|
app: synctv
|
||
|
template:
|
||
|
metadata:
|
||
|
labels:
|
||
|
app: synctv
|
||
|
spec:
|
||
|
affinity:
|
||
|
podAffinity:
|
||
|
requiredDuringSchedulingIgnoredDuringExecution:
|
||
|
- labelSelector:
|
||
|
matchExpressions:
|
||
|
- key: app
|
||
|
operator: In
|
||
|
values:
|
||
|
- synctv-postgresql
|
||
|
topologyKey: kubernetes.io/hostname
|
||
|
containers:
|
||
|
- name: synctv
|
||
|
image: {{ .Values.synctv.image.repository }}:{{ .Values.synctv.image.tag | default .Chart.AppVersion }}
|
||
|
imagePullPolicy: {{ .Values.synctv.image.pullPolicy }}
|
||
|
ports:
|
||
|
- containerPort: 8080
|
||
|
envFrom:
|
||
|
- configMapRef:
|
||
|
name: {{ .Values.synctv.envConfigName }}
|
||
|
volumeMounts:
|
||
|
- name: synctv-storage
|
||
|
mountPath: /root/.synctv
|
||
|
volumeClaimTemplates:
|
||
|
- metadata:
|
||
|
name: synctv-storage
|
||
|
spec:
|
||
|
{{- with .Values.synctv.storage.storageClass }}
|
||
|
storageClassName: {{ . }}
|
||
|
{{- end }}
|
||
|
accessModes: ["ReadWriteOnce"]
|
||
|
resources:
|
||
|
requests:
|
||
|
storage: {{ .Values.synctv.storage.size }}
|