mirror of
https://github.com/k8s-at-home/charts.git
synced 2025-02-03 15:59:09 +00:00
[jackett] Migrate to common library (#113)
This commit is contained in:
parent
c7f15f37a2
commit
45c9f3c39e
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
appVersion: v0.16.1045
|
appVersion: v0.16.1045
|
||||||
description: API Support for your favorite torrent trackers
|
description: API Support for your favorite torrent trackers
|
||||||
name: jackett
|
name: jackett
|
||||||
version: 4.0.1
|
version: 5.0.0
|
||||||
keywords:
|
keywords:
|
||||||
- jackett
|
- jackett
|
||||||
- torrent
|
- torrent
|
||||||
@ -15,7 +15,6 @@ maintainers:
|
|||||||
- name: billimek
|
- name: billimek
|
||||||
email: jeff@billimek.com
|
email: jeff@billimek.com
|
||||||
dependencies:
|
dependencies:
|
||||||
- name: media-common
|
- name: common
|
||||||
repository: https://k8s-at-home.com/charts/
|
repository: https://k8s-at-home.com/charts/
|
||||||
version: ^1.0.0
|
version: ^1.0.3
|
||||||
alias: jackett
|
|
||||||
|
@ -28,8 +28,9 @@ helm delete my-release --purge
|
|||||||
The command removes all the Kubernetes components associated with the chart and deletes the release.
|
The command removes all the Kubernetes components associated with the chart and deletes the release.
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
Read through the media-common [values.yaml](https://github.com/k8s-at-home/charts/blob/master/charts/media-common/values.yaml)
|
Read through the charts [values.yaml](https://github.com/k8s-at-home/charts/blob/master/charts/jackett/values.yaml)
|
||||||
file. It has several commented out suggested values.
|
file. It has several commented out suggested values.
|
||||||
|
Additionally you can take a look at the common library [values.yaml](https://github.com/k8s-at-home/charts/blob/master/charts/common/values.yaml) for more (advanced) configuration options.
|
||||||
|
|
||||||
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
|
||||||
```console
|
```console
|
||||||
@ -43,9 +44,7 @@ chart. For example,
|
|||||||
helm install jackett k8s-at-home/jackett --values values.yaml
|
helm install jackett k8s-at-home/jackett --values values.yaml
|
||||||
```
|
```
|
||||||
|
|
||||||
These values will be nested as it is a dependency, for example
|
|
||||||
```yaml
|
```yaml
|
||||||
jackett:
|
|
||||||
image:
|
image:
|
||||||
tag: ...
|
tag: ...
|
||||||
```
|
```
|
||||||
@ -60,3 +59,18 @@ Error: rendered manifests contain a resource that already exists. Unable to cont
|
|||||||
it may be because you uninstalled the chart with `skipuninstall` enabled, you need to manually delete the pvc or use `existingClaim`.
|
it may be because you uninstalled the chart with `skipuninstall` enabled, you need to manually delete the pvc or use `existingClaim`.
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
## Upgrading an existing Release to a new major version
|
||||||
|
|
||||||
|
A major chart version change (like 4.0.1 -> 5.0.0) indicates that there is an incompatible breaking change potentially needing manual actions.
|
||||||
|
|
||||||
|
### Upgrading from 4.x.x to 5.x.x
|
||||||
|
|
||||||
|
Due to migrating to a centralized common library some values in `values.yaml` have changed.
|
||||||
|
|
||||||
|
Examples:
|
||||||
|
|
||||||
|
* `service.port` has been moved to `service.port.port`.
|
||||||
|
* `persistence.type` has been moved to `controllerType`.
|
||||||
|
|
||||||
|
Refer to the library values.yaml for more configuration options.
|
||||||
|
@ -1,10 +0,0 @@
|
|||||||
jackett:
|
|
||||||
image:
|
|
||||||
organization: linuxserver
|
|
||||||
repository: jackett
|
|
||||||
tag: v0.16.1045-ls14
|
|
||||||
service:
|
|
||||||
type: ClusterIP
|
|
||||||
port: 9117
|
|
||||||
ingress:
|
|
||||||
enabled: false
|
|
@ -1,20 +1 @@
|
|||||||
{{- $svcPort := .Values.jackett.service.port -}}
|
{{- include "common.notes.defaultNotes" . -}}
|
||||||
1. Get the application URL by running these commands:
|
|
||||||
{{- if .Values.jackett.ingress.enabled }}
|
|
||||||
{{- range .Values.jackett.ingress.hosts }}
|
|
||||||
http{{ if $.Values.jackett.ingress.tls }}s{{ end }}://{{ . }}{{ $.Values.jackett.ingress.path }}
|
|
||||||
{{- end }}
|
|
||||||
{{- else if contains "NodePort" .Values.jackett.service.type }}
|
|
||||||
export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "media-common.fullname" . }})
|
|
||||||
export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}")
|
|
||||||
echo http://$NODE_IP:$NODE_PORT
|
|
||||||
{{- else if contains "LoadBalancer" .Values.jackett.service.type }}
|
|
||||||
NOTE: It may take a few minutes for the LoadBalancer IP to be available.
|
|
||||||
You can watch the status of by running 'kubectl get svc -w {{ include "media-common.fullname" . }}'
|
|
||||||
export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "media-common.fullname" . }} -o jsonpath='{.status.loadBalancer.ingress[0].ip}')
|
|
||||||
echo http://$SERVICE_IP:{{ $svcPort }}
|
|
||||||
{{- else if contains "ClusterIP" .Values.jackett.service.type }}
|
|
||||||
export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "media-common.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}")
|
|
||||||
echo "Visit http://127.0.0.1:8080 to use your application"
|
|
||||||
kubectl port-forward $POD_NAME 8080:{{ $svcPort }}
|
|
||||||
{{- end }}
|
|
||||||
|
1
charts/jackett/templates/common.yaml
Normal file
1
charts/jackett/templates/common.yaml
Normal file
@ -0,0 +1 @@
|
|||||||
|
{{ include "common.all" . }}
|
@ -1,22 +0,0 @@
|
|||||||
{{- if and .Values.jackett.persistence.torrentblackhole.enabled (not .Values.jackett.persistence.torrentblackhole.existingClaim) }}
|
|
||||||
---
|
|
||||||
kind: PersistentVolumeClaim
|
|
||||||
apiVersion: v1
|
|
||||||
metadata:
|
|
||||||
name: {{ template "media-common.fullname" . }}-downloads
|
|
||||||
{{- if .Values.jackett.persistence.torrentblackhole.skipuninstall }}
|
|
||||||
annotations:
|
|
||||||
"helm.sh/resource-policy": keep
|
|
||||||
{{- end }}
|
|
||||||
labels:
|
|
||||||
{{- include "media-common.labels" . | nindent 4 }}
|
|
||||||
spec:
|
|
||||||
accessModes:
|
|
||||||
- {{ .Values.jackett.persistence.torrentblackhole.accessMode | quote }}
|
|
||||||
resources:
|
|
||||||
requests:
|
|
||||||
storage: {{ .Values.jackett.persistence.torrentblackhole.size | quote }}
|
|
||||||
{{- if .Values.jackett.persistence.torrentblackhole.storageClass }}
|
|
||||||
storageClassName: {{ if (eq "-" .Values.jackett.persistence.torrentblackhole.storageClass) }}""{{- else }}{{ .Values.jackett.persistence.torrentblackhole.storageClass | quote}}{{- end }}
|
|
||||||
{{- end }}
|
|
||||||
{{- end -}}
|
|
@ -1,13 +1,12 @@
|
|||||||
# Default values for Jackett.
|
# Default values for Jackett.
|
||||||
|
|
||||||
jackett:
|
|
||||||
image:
|
image:
|
||||||
organization: linuxserver
|
repository: linuxserver/jackett
|
||||||
repository: jackett
|
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
tag: v0.16.1045-ls14
|
tag: v0.16.1045-ls14
|
||||||
|
|
||||||
service:
|
service:
|
||||||
|
port:
|
||||||
port: 9117
|
port: 9117
|
||||||
|
|
||||||
env: {}
|
env: {}
|
||||||
@ -16,8 +15,14 @@ jackett:
|
|||||||
# PGID: 1001
|
# PGID: 1001
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
|
config:
|
||||||
|
enabled: true
|
||||||
|
emptyDir: true
|
||||||
|
|
||||||
torrentblackhole:
|
torrentblackhole:
|
||||||
enabled: false
|
enabled: true
|
||||||
|
emptyDir: true
|
||||||
|
mountPath: /downloads
|
||||||
## Jackett torrent torrentblackhole Persistent Volume Storage Class
|
## Jackett torrent torrentblackhole Persistent Volume Storage Class
|
||||||
## If defined, storageClassName: <storageClass>
|
## If defined, storageClassName: <storageClass>
|
||||||
## If set to "-", storageClassName: "", which disables dynamic provisioning
|
## If set to "-", storageClassName: "", which disables dynamic provisioning
|
||||||
@ -30,14 +35,3 @@ jackett:
|
|||||||
## Do not delete the pvc upon helm uninstall
|
## Do not delete the pvc upon helm uninstall
|
||||||
# skipuninstall: false
|
# skipuninstall: false
|
||||||
# existingClaim: ""
|
# existingClaim: ""
|
||||||
|
|
||||||
additionalVolumes:
|
|
||||||
- name: torrentblackhole
|
|
||||||
emptyDir: {}
|
|
||||||
## When using persistence.torrentblackhole.enabled: true, adjust this to:
|
|
||||||
# persistentVolumeClaim:
|
|
||||||
# claimName: jackett-torrentblackhole
|
|
||||||
|
|
||||||
additionalVolumeMounts:
|
|
||||||
- name: torrentblackhole
|
|
||||||
mountPath: /downloads
|
|
||||||
|
Loading…
Reference in New Issue
Block a user