Fixed radarr chart
This commit is contained in:
@@ -0,0 +1,106 @@
|
||||
apiVersion: apps/v1
|
||||
kind: StatefulSet
|
||||
metadata:
|
||||
name: {{ include "radarr.fullname" . }}
|
||||
labels:
|
||||
{{- include "radarr.labels" . | nindent 4 }}
|
||||
spec:
|
||||
replicas: {{ .Values.replicaCount }}
|
||||
serviceName: {{ include "radarr.fullname" . }}
|
||||
selector:
|
||||
matchLabels:
|
||||
{{- include "radarr.selectorLabels" . | nindent 6 }}
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
{{- include "radarr.selectorLabels" . | nindent 8 }}
|
||||
spec:
|
||||
{{- with .Values.imagePullSecrets }}
|
||||
imagePullSecrets:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
serviceAccountName: {{ include "radarr.serviceAccountName" . }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.podSecurityContext | nindent 8 }}
|
||||
containers:
|
||||
- name: {{ .Chart.Name }}-sidecar
|
||||
image: harbor.ervine.dev/public/x86_64/alpine/sonarr-sidecar:v3.12.0
|
||||
securityContext:
|
||||
privileged: true
|
||||
lifecycle:
|
||||
preStop:
|
||||
exec:
|
||||
command:
|
||||
- umount
|
||||
- /mnt/app-local-config
|
||||
volumeMounts:
|
||||
- name: radarr-config
|
||||
mountPath: /app-remote-config
|
||||
- name: radarr-local-config
|
||||
mountPath: /mnt/app-local-config
|
||||
mountPropagation: Bidirectional
|
||||
resources:
|
||||
requests:
|
||||
cpu: 20m
|
||||
memory: 32Mi
|
||||
- name: {{ .Chart.Name }}
|
||||
securityContext:
|
||||
{{- toYaml .Values.securityContext | nindent 12 }}
|
||||
image: "{{ .Values.image.repository }}:{{ .Chart.AppVersion }}"
|
||||
imagePullPolicy: {{ .Values.image.pullPolicy }}
|
||||
ports:
|
||||
- name: radarr
|
||||
containerPort: 7878
|
||||
protocol: TCP
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
port: 7878
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
port: 7878
|
||||
resources:
|
||||
{{- toYaml .Values.resources | nindent 12 }}
|
||||
volumeMounts:
|
||||
- name: radarr-local-config
|
||||
mountPath: /config
|
||||
mountPropagation: HostToContainer
|
||||
- name: radarr-config
|
||||
mountPath: /config/Backups
|
||||
subPath: Backups
|
||||
- name: radarr-config
|
||||
mountPath: /config/MediaCover
|
||||
subPath: MediaCover
|
||||
- name: radarr-config
|
||||
mountPath: /config/logs
|
||||
subPath: logs
|
||||
- name: radarr-media
|
||||
mountPath: /movies
|
||||
subPath: movies
|
||||
volumes:
|
||||
- emptyDir: {}
|
||||
name: radarr-local-config
|
||||
- name: radarr-media
|
||||
persistentVolumeClaim:
|
||||
claimName: {{ .Values.mediaPvc }}
|
||||
{{- with .Values.nodeSelector }}
|
||||
nodeSelector:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.affinity }}
|
||||
affinity:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
{{- with .Values.tolerations }}
|
||||
tolerations:
|
||||
{{- toYaml . | nindent 8 }}
|
||||
{{- end }}
|
||||
volumeClaimTemplates:
|
||||
- metadata:
|
||||
name: {{ .Chart.Name }}-config
|
||||
spec:
|
||||
accessModes: ['ReadWriteOnce']
|
||||
storageClassName: {{ .Values.config.storageClassName | quote }}
|
||||
resources:
|
||||
requests:
|
||||
storage: {{ .Values.config.storageSize }}
|
||||
|
||||
Reference in New Issue
Block a user