apiVersion: apps/v1 kind: Deployment metadata: name: {{ include "miniflux.fullname" . }} labels: {{- include "miniflux.labels" . | nindent 4 }} spec: {{- if not .Values.autoscaling.enabled }} replicas: {{ .Values.replicaCount }} {{- end }} selector: matchLabels: {{- include "miniflux.selectorLabels" . | nindent 6 }} template: metadata: {{- with .Values.podAnnotations }} annotations: {{- toYaml . | nindent 8 }} {{- end }} labels: {{- include "miniflux.labels" . | nindent 8 }} {{- with .Values.podLabels }} {{- toYaml . | nindent 8 }} {{- end }} spec: {{- with .Values.imagePullSecrets }} imagePullSecrets: {{- toYaml . | nindent 8 }} {{- end }} serviceAccountName: {{ include "miniflux.serviceAccountName" . }} securityContext: {{- toYaml .Values.podSecurityContext | nindent 8 }} containers: - name: {{ .Chart.Name }} env: - name: DATABASE_URL value: postgres://miniflux:secret@localhost:5432/miniflux?sslmode=disable - name: RUN_MIGRATIONS value: "1" - name: CREATE_ADMIN value: "1" - name: ADMIN_USERNAME value: "admin" - name: ADMIN_PASSWORD value: "test123" # Note - values above are only used for initialization. After first installation, they're changed (manually. # It'd be super-cool to have a Job as part of the deployment that makes that change, but :shrug:) securityContext: {{- toYaml .Values.securityContext | nindent 12 }} image: "{{ .Values.image.repository }}:{{ .Values.image.tag | default .Chart.AppVersion }}" imagePullPolicy: {{ .Values.image.pullPolicy }} ports: - port: {{ .Values.service.port }} containerPort: 8080 name: http protocol: TCP # livenessProbe: # httpGet: # path: / # port: http # readinessProbe: # httpGet: # path: / # port: http resources: {{- toYaml .Values.resources | nindent 12 }} {{- with .Values.volumeMounts }} volumeMounts: {{- toYaml . | nindent 12 }} {{- end }} - name: postgres image: "postgres:17-alpine" env: - name: POSTGRES_USER value: miniflux - name: POSTGRES_PASSWORD value: secret - name: POSTGRES_DB value: miniflux volumeMounts: - mountPath: /var/lib/postgresql/data name: postgres-data {{- with .Values.volumes }} volumes: {{- toYaml . | nindent 8 }} {{- 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 }}