mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-01-24 07:59:02 +00:00
reverting sonarr to deployment
This commit is contained in:
parent
ad6a28da7a
commit
3959b1498e
@ -1,8 +1,8 @@
|
|||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
appVersion: amd64-2.0.0.5318-ls31
|
appVersion: amd64-3.0.1.418-ls45
|
||||||
description: Sonarr is a television show downloading client
|
description: Sonarr is a television show downloading client
|
||||||
name: sonarr
|
name: sonarr
|
||||||
version: 1.1.2
|
version: 2.0.2
|
||||||
keywords:
|
keywords:
|
||||||
- sonarr
|
- sonarr
|
||||||
- usenet
|
- usenet
|
||||||
|
@ -34,8 +34,9 @@ The following tables lists the configurable parameters of the Sentry chart and t
|
|||||||
| Parameter | Description | Default |
|
| Parameter | Description | Default |
|
||||||
|----------------------------|-------------------------------------|---------------------------------------------------------|
|
|----------------------------|-------------------------------------|---------------------------------------------------------|
|
||||||
| `image.repository` | Image repository | `linuxserver/sonarr` |
|
| `image.repository` | Image repository | `linuxserver/sonarr` |
|
||||||
| `image.tag` | Image tag. Possible values listed [here](https://hub.docker.com/r/linuxserver/sonarr/tags/).| `162`|
|
| `image.tag` | Image tag. Possible values listed [here](https://hub.docker.com/r/linuxserver/sonarr/tags/).| `amd64-3.0.1.418-ls45`|
|
||||||
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
|
| `image.pullPolicy` | Image pull policy | `IfNotPresent` |
|
||||||
|
| `strategyType` | Specifies the strategy used to replace old Pods by new ones | `Recreate` |
|
||||||
| `timezone` | Timezone the sonarr instance should run as, e.g. 'America/New_York' | `UTC` |
|
| `timezone` | Timezone the sonarr instance should run as, e.g. 'America/New_York' | `UTC` |
|
||||||
| `puid` | process userID the sonarr instance should run as | `1001` |
|
| `puid` | process userID the sonarr instance should run as | `1001` |
|
||||||
| `pgid` | process groupID the sonarr instance should run as | `1001` |
|
| `pgid` | process groupID the sonarr instance should run as | `1001` |
|
||||||
|
25
sonarr/templates/config-pvc.yaml
Normal file
25
sonarr/templates/config-pvc.yaml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
|
||||||
|
{{- if and .Values.persistence.config.enabled (not .Values.persistence.config.existingClaim) }}
|
||||||
|
kind: PersistentVolumeClaim
|
||||||
|
apiVersion: v1
|
||||||
|
metadata:
|
||||||
|
name: {{ template "sonarr.fullname" . }}-config
|
||||||
|
labels:
|
||||||
|
app.kubernetes.io/name: {{ include "sonarr.name" . }}
|
||||||
|
helm.sh/chart: {{ include "sonarr.chart" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
spec:
|
||||||
|
accessModes:
|
||||||
|
- {{ .Values.persistence.config.accessMode | quote }}
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
storage: {{ .Values.persistence.config.size | quote }}
|
||||||
|
{{- if .Values.persistence.config.storageClass }}
|
||||||
|
{{- if (eq "-" .Values.persistence.config.storageClass) }}
|
||||||
|
storageClassName: ""
|
||||||
|
{{- else }}
|
||||||
|
storageClassName: "{{ .Values.persistence.config.storageClass }}"
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end -}}
|
@ -1,5 +1,5 @@
|
|||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: StatefulSet
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ include "sonarr.fullname" . }}
|
name: {{ include "sonarr.fullname" . }}
|
||||||
labels:
|
labels:
|
||||||
@ -8,8 +8,9 @@ metadata:
|
|||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
spec:
|
spec:
|
||||||
podManagementPolicy: "Parallel"
|
replicas: 1
|
||||||
replicas: {{ .Values.replicaCount }}
|
strategy:
|
||||||
|
type: {{ .Values.strategyType }}
|
||||||
selector:
|
selector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
app.kubernetes.io/name: {{ include "sonarr.name" . }}
|
app.kubernetes.io/name: {{ include "sonarr.name" . }}
|
||||||
@ -64,6 +65,13 @@ spec:
|
|||||||
resources:
|
resources:
|
||||||
{{ toYaml .Values.resources | indent 12 }}
|
{{ toYaml .Values.resources | indent 12 }}
|
||||||
volumes:
|
volumes:
|
||||||
|
- name: config
|
||||||
|
{{- if .Values.persistence.config.enabled }}
|
||||||
|
persistentVolumeClaim:
|
||||||
|
claimName: {{ if .Values.persistence.config.existingClaim }}{{ .Values.persistence.config.existingClaim }}{{- else }}{{ template "sonarr.fullname" . }}-config{{- end }}
|
||||||
|
{{- else }}
|
||||||
|
emptyDir: {}
|
||||||
|
{{- end }}
|
||||||
- name: downloads
|
- name: downloads
|
||||||
{{- if .Values.persistence.downloads.enabled }}
|
{{- if .Values.persistence.downloads.enabled }}
|
||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
@ -83,38 +91,6 @@ spec:
|
|||||||
persistentVolumeClaim:
|
persistentVolumeClaim:
|
||||||
claimName: {{ .existingClaim }}
|
claimName: {{ .existingClaim }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if and .Values.persistence.config.enabled .Values.persistence.config.existingClaim }}
|
|
||||||
- name: config
|
|
||||||
{{- if .Values.persistence.config.enabled }}
|
|
||||||
persistentVolumeClaim:
|
|
||||||
claimName: {{ .Values.persistence.config.existingClaim }}
|
|
||||||
{{- else }}
|
|
||||||
emptyDir: {}
|
|
||||||
{{- end }}
|
|
||||||
{{- else if not .Values.persistence.config.enabled }}
|
|
||||||
- name: config
|
|
||||||
emptyDir: {}
|
|
||||||
{{- else if and .Values.persistence.config.enabled (not .Values.persistence.config.existingClaim) }}
|
|
||||||
volumeClaimTemplates:
|
|
||||||
- metadata:
|
|
||||||
name: config
|
|
||||||
labels:
|
|
||||||
app.kubernetes.io/name: {{ include "sonarr.name" . }}
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- {{ .Values.persistence.config.accessMode | quote }}
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: {{ .Values.persistence.config.size | quote }}
|
|
||||||
{{- if .Values.persistence.config.storageClass }}
|
|
||||||
{{- if (eq "-" .Values.persistence.config.storageClass) }}
|
|
||||||
storageClassName: ""
|
|
||||||
{{- else }}
|
|
||||||
storageClassName: "{{ .Values.persistence.config.storageClass }}"
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- with .Values.nodeSelector }}
|
{{- with .Values.nodeSelector }}
|
||||||
nodeSelector:
|
nodeSelector:
|
||||||
{{ toYaml . | indent 8 }}
|
{{ toYaml . | indent 8 }}
|
@ -2,13 +2,14 @@
|
|||||||
# This is a YAML-formatted file.
|
# This is a YAML-formatted file.
|
||||||
# Declare variables to be passed into your templates.
|
# Declare variables to be passed into your templates.
|
||||||
|
|
||||||
replicaCount: 1
|
|
||||||
|
|
||||||
image:
|
image:
|
||||||
repository: linuxserver/sonarr
|
repository: linuxserver/sonarr
|
||||||
tag: amd64-2.0.0.5318-ls31
|
tag: amd64-3.0.1.418-ls45
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
|
|
||||||
|
# upgrade strategy type (e.g. Recreate or RollingUpdate)
|
||||||
|
strategyType: Recreate
|
||||||
|
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
fullnameOverride: ""
|
fullnameOverride: ""
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user