2023-01-08 14:36:29 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: {{ include "freshrss.fullname" . }}
|
|
|
|
labels:
|
|
|
|
{{- include "freshrss.labels" . | nindent 4 }}
|
|
|
|
spec:
|
|
|
|
replicas: {{ .Values.replicaCount }}
|
|
|
|
strategy:
|
|
|
|
{{ toYaml .Values.strategy | indent 4 }}
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
{{- include "freshrss.selectorLabels" . | nindent 6 }}
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
{{- with .Values.podAnnotations }}
|
|
|
|
annotations:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
labels:
|
|
|
|
{{- include "freshrss.selectorLabels" . | nindent 8 }}
|
|
|
|
spec:
|
|
|
|
{{- with .Values.imagePullSecrets }}
|
|
|
|
imagePullSecrets:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
serviceAccountName: {{ include "freshrss.serviceAccountName" . }}
|
|
|
|
securityContext:
|
|
|
|
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
|
|
|
containers:
|
|
|
|
- name: {{ .Chart.Name }}
|
|
|
|
securityContext:
|
|
|
|
{{- toYaml .Values.securityContext | nindent 12 }}
|
|
|
|
image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}"
|
|
|
|
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
containerPort: {{ .Values.service.port }}
|
|
|
|
protocol: TCP
|
|
|
|
env:
|
|
|
|
- name: TZ
|
|
|
|
value: {{ .Values.freshrss.timezone }}
|
|
|
|
- name: FRESHRSS_ENV
|
|
|
|
value: {{ .Values.freshrss.freshEnv }}
|
2023-02-05 15:10:49 +00:00
|
|
|
{{- if .Values.freshrss.cron.enabled }}
|
|
|
|
- name: CRON_MIN
|
|
|
|
value: {{ .Values.freshrss.cron.cronMin }}
|
|
|
|
{{- end }}
|
2023-01-08 14:36:29 +00:00
|
|
|
{{- if .Values.freshrss.autoInstall.enabled }}
|
|
|
|
- name: FRESHRSS_INSTALL
|
|
|
|
value: |-
|
|
|
|
{{- if .Values.freshrss.autoInstall.apiEnabled }}
|
|
|
|
--api_enabled
|
|
|
|
{{- end }}
|
|
|
|
--language {{ .Values.freshrss.autoInstall.language }}
|
|
|
|
--default_user {{ .Values.freshrss.autoInstall.defaultUser.user }}
|
|
|
|
- name: FRESHRSS_USER
|
|
|
|
value: |-
|
|
|
|
{{- with .Values.freshrss.autoInstall.defaultUser }}
|
|
|
|
--email {{ .email }}
|
|
|
|
--password {{ .password }}
|
|
|
|
--user {{ .user }}
|
|
|
|
{{- end }}
|
|
|
|
--language {{ .Values.freshrss.autoInstall.language }}
|
|
|
|
{{- end }}
|
|
|
|
livenessProbe:
|
|
|
|
httpGet:
|
2023-03-27 21:23:15 +00:00
|
|
|
path: /i/
|
2023-01-08 14:36:29 +00:00
|
|
|
port: http
|
|
|
|
initialDelaySeconds: 30
|
|
|
|
readinessProbe:
|
|
|
|
httpGet:
|
2023-03-27 21:23:15 +00:00
|
|
|
path: /i/
|
2023-01-08 14:36:29 +00:00
|
|
|
port: http
|
|
|
|
resources:
|
|
|
|
{{- toYaml .Values.resources | nindent 12 }}
|
|
|
|
volumeMounts:
|
|
|
|
- name: freshrss-data
|
|
|
|
mountPath: /var/www/FreshRSS/data
|
|
|
|
volumes:
|
|
|
|
- name: freshrss-data
|
|
|
|
{{- if .Values.persistence.enabled }}
|
|
|
|
persistentVolumeClaim:
|
|
|
|
claimName: {{ if .Values.persistence.existingClaim }}{{ .Values.persistence.existingClaim }}{{- else }}{{ template "freshrss.fullname" . }}-pvc{{- end }}
|
|
|
|
{{- else }}
|
|
|
|
emptyDir: {}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.nodeSelector }}
|
|
|
|
nodeSelector:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.affinity }}
|
|
|
|
affinity:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|
|
|
|
{{- with .Values.tolerations }}
|
|
|
|
tolerations:
|
|
|
|
{{- toYaml . | nindent 8 }}
|
|
|
|
{{- end }}
|