diff --git a/charts/unpackerr/Chart.yaml b/charts/unpackerr/Chart.yaml new file mode 100644 index 0000000..80be3c6 --- /dev/null +++ b/charts/unpackerr/Chart.yaml @@ -0,0 +1,13 @@ +apiVersion: v2 +name: unpackerr +version: 0.0.1 +description: Chart for Unpackerr +keywords: + - utility + - servarr +sources: + - https://github.com/Unpackerr/unpackerr +maintainers: + - name: alexlebens +icon: https://avatars.githubusercontent.com/u/104323643?s=48&v=4 +appVersion: "0.13.1" diff --git a/charts/unpackerr/templates/deployment.yaml b/charts/unpackerr/templates/deployment.yaml new file mode 100644 index 0000000..6fd4c26 --- /dev/null +++ b/charts/unpackerr/templates/deployment.yaml @@ -0,0 +1,50 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: {{ .Release.Name }} + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: {{ .Release.Name }} + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/version: {{ .Chart.AppVersion }} + app.kubernetes.io/component: web + app.kubernetes.io/part-of: {{ .Release.Name }} +spec: + revisionHistoryLimit: 3 + replicas: {{ .Values.deployment.replicas }} + strategy: + type: {{ .Values.deployment.strategy }} + selector: + matchLabels: + app.kubernetes.io/name: {{ .Release.Name }} + app.kubernetes.io/instance: {{ .Release.Name }} + template: + metadata: + labels: + app.kubernetes.io/name: {{ .Release.Name }} + app.kubernetes.io/instance: {{ .Release.Name }} + spec: + serviceAccountName: {{ .Release.Name }} + automountServiceAccountToken: true + containers: + - name: {{ .Release.Name }} + image: "{{ .Values.deployment.image.repository }}:{{ .Values.deployment.image.tag }}" + imagePullPolicy: {{ .Values.deployment.image.imagePullPolicy }} + env: + {{- range $k,$v := .Values.deployment.env }} + - name: {{ $k }} + value: {{ $v | quote }} + {{- end }} + {{- with .Values.deployment.envFrom }} + envFrom: + {{- toYaml . | nindent 12 }} + {{- end }} + resources: + {{- toYaml .Values.deployment.resources | nindent 12 }} + volumeMounts: + - name: "{{ .Release.Name }}-downloads" + mountPath: {{ .Values.persistence.downloads.mountPath }} + volumes: + - name: "{{ .Release.Name }}-downloads" + persistentVolumeClaim: + claimName: {{ .Values.persistence.downloads.claimName }} diff --git a/charts/unpackerr/templates/service-account.yaml b/charts/unpackerr/templates/service-account.yaml new file mode 100644 index 0000000..a437092 --- /dev/null +++ b/charts/unpackerr/templates/service-account.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: ServiceAccount +metadata: + name: {{ .Release.Name }} + namespace: {{ .Release.Namespace }} + labels: + app.kubernetes.io/name: {{ .Release.Name }} + app.kubernetes.io/instance: {{ .Release.Name }} + app.kubernetes.io/version: {{ .Chart.AppVersion }} + app.kubernetes.io/component: web + app.kubernetes.io/part-of: {{ .Release.Name }} diff --git a/charts/unpackerr/values.yaml b/charts/unpackerr/values.yaml new file mode 100644 index 0000000..41b6c56 --- /dev/null +++ b/charts/unpackerr/values.yaml @@ -0,0 +1,22 @@ +deployment: + replicas: 1 + strategy: Recreate + image: + repository: golift/unpackerr + tag: "0.13.1" + imagePullPolicy: IfNotPresent + env: + TZ: UTC + UN_WEBSERVER_METRICS: false + envFrom: + resources: + requests: + memory: 256Mi + cpu: 50m + limits: + memory: 1Gi + cpu: 500m +persistence: + downloads: + mountPath: + existingClaim: