Skip to content

Commit

Permalink
suppression ingress par default
Browse files Browse the repository at this point in the history
  • Loading branch information
ramboz committed May 13, 2018
1 parent 77b2329 commit 20ebb41
Show file tree
Hide file tree
Showing 27 changed files with 129 additions and 128 deletions.
Binary file modified jackett-0.1.0.tgz
Binary file not shown.
4 changes: 2 additions & 2 deletions jackett/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
description: A Jackett HELM chart for Kubernetes
appVersion: "1.0"
description: Jackett - shut:p
name: jackett
version: 0.1.0
icon: https://bananaspliff.github.io/helm-charts/jackett/logo/jackett.png
Binary file removed jackett/logo/jackett.png
Binary file not shown.
11 changes: 2 additions & 9 deletions jackett/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ spec:
release: {{ .Release.Name }}
spec:
volumes:
- name: myvolume
persistentVolumeClaim:
claimName: myvolume-{{default "default" .Release.Namespace}}
{{ toYaml .Values.volumes | indent 6 }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand All @@ -40,12 +38,7 @@ spec:
path: /
port: http
volumeMounts:
- name: myvolume
mountPath: "/config"
subPath: "configs/{{ template "jackett.fullname" . }}"
- name: myvolume
mountPath: "/downloads"
subPath: "downloads/{{ default "jackett" .Values.subDomain }}"
{{ toYaml .Values.volumeMounts | indent 12 }}
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
15 changes: 11 additions & 4 deletions jackett/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "jackett.fullname" . -}}
{{- $servicePort := .Values.service.port -}}
{{- $ingressPath := .Values.ingress.path -}}
apiVersion: extensions/v1beta1
kind: Ingress
Expand All @@ -16,16 +15,24 @@ metadata:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
- {{ default "jackett" .Values.subDomain }}.{{default "default" .Release.Namespace}}.{{ .Values.domain }}
secretName: {{ default "jackett" .Values.subDomain }}-{{default "default" .Release.Namespace}}-{{ .Values.domain }}-tls
{{- range .hosts }}
- {{ . }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
- host: {{ default "jackett" .Values.subDomain }}.{{default "default" .Release.Namespace}}.{{ .Values.domain }}
{{- range .Values.ingress.hosts }}
- host: {{ . }}
http:
paths:
- path: {{ $ingressPath }}
backend:
serviceName: {{ $fullName }}
servicePort: http
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion jackett/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
targetPort: 9117
protocol: TCP
name: http
selector:
Expand Down
39 changes: 20 additions & 19 deletions jackett/values.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
# Default values for jackett.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1

domain: bananaspliff.org

#subDomain: jackett #(default : jackett.<<namespace>>.<<domain>>)

image:
repository: linuxserver/jackett
tag: latest
Expand All @@ -18,27 +11,35 @@ service:
port: 80

ingress:
enabled: true
enabled: false
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
path: /
hosts:
- jackett.bananaspliff.org
tls:
- secretName: jackett-bananaspliff-org
hosts:
- jackett.bananaspliff.org

volumes:
- name: myvolume
persistentVolumeClaim:
claimName: myvolume

volumeMounts:
- name: myvolume
mountPath: "/config"
subPath: "configs/jackett"
- name: myvolume
mountPath: "/downloads"
subPath: "downloads/jackett"

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi

nodeSelector: {}

tolerations: []

affinity: {}

Binary file modified myvolume-0.1.0.tgz
Binary file not shown.
2 changes: 1 addition & 1 deletion myvolume/templates/pvc.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: myvolume-{{default "default" .Release.Namespace}}
name: {{ .Values.volumeName }}
spec:
storageClassName: {{ .Values.storageClass }}
accessModes:
Expand Down
2 changes: 2 additions & 0 deletions myvolume/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@

storageClass: bananaspliff-nfs

volumeName: myvolume

storage: 512Gi

# WARNING !!! removing the package causes the physical removal of the volume
Expand Down
Binary file modified radarr-0.1.0.tgz
Binary file not shown.
4 changes: 2 additions & 2 deletions radarr/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
description: A Radarr HELM chart for Kubernetes
appVersion: "1.0"
description: Radarr - Automatic downloader for movies :)
name: radarr
version: 0.1.0
icon: https://bananaspliff.github.io/helm-charts/radarr/logo/radarr.png
Binary file removed radarr/logo/radarr.png
Binary file not shown.
14 changes: 2 additions & 12 deletions radarr/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ spec:
release: {{ .Release.Name }}
spec:
volumes:
- name: myvolume
persistentVolumeClaim:
claimName: myvolume-{{default "default" .Release.Namespace}}
{{ toYaml .Values.volumes | indent 6 }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand All @@ -40,15 +38,7 @@ spec:
path: /
port: http
volumeMounts:
- name: myvolume
mountPath: "/config"
subPath: "configs/{{ template "radarr.fullname" . }}"
- name: myvolume
mountPath: "/downloads"
subPath: "downloads/{{ default "radarr" .Values.subDomain }}"
- name: myvolume
mountPath: "/movies"
subPath: "medias/movies"
{{ toYaml .Values.volumeMounts | indent 12 }}
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
15 changes: 11 additions & 4 deletions radarr/templates/ingress.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{{- if .Values.ingress.enabled -}}
{{- $fullName := include "radarr.fullname" . -}}
{{- $servicePort := .Values.service.port -}}
{{- $ingressPath := .Values.ingress.path -}}
apiVersion: extensions/v1beta1
kind: Ingress
Expand All @@ -16,16 +15,24 @@ metadata:
{{ toYaml . | indent 4 }}
{{- end }}
spec:
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
- hosts:
- {{ default "radarr" .Values.subDomain }}.{{default "default" .Release.Namespace}}.{{ .Values.domain }}
secretName: {{ default "radarr" .Values.subDomain }}-{{default "default" .Release.Namespace}}-{{ .Values.domain }}-tls
{{- range .hosts }}
- {{ . }}
{{- end }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
rules:
- host: {{ default "radarr" .Values.subDomain }}.{{default "default" .Release.Namespace}}.{{ .Values.domain }}
{{- range .Values.ingress.hosts }}
- host: {{ . }}
http:
paths:
- path: {{ $ingressPath }}
backend:
serviceName: {{ $fullName }}
servicePort: http
{{- end }}
{{- end }}
2 changes: 1 addition & 1 deletion radarr/templates/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ spec:
type: {{ .Values.service.type }}
ports:
- port: {{ .Values.service.port }}
targetPort: http
targetPort: 7878
protocol: TCP
name: http
selector:
Expand Down
42 changes: 23 additions & 19 deletions radarr/values.yaml
Original file line number Diff line number Diff line change
@@ -1,13 +1,6 @@
# Default values for radarr.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

replicaCount: 1

domain: bananaspliff.org

#subDomain: radarr #(default : radarr.<<namespace>>.<<domain>>)

image:
repository: linuxserver/radarr
tag: latest
Expand All @@ -18,27 +11,38 @@ service:
port: 80

ingress:
enabled: true
enabled: false
annotations:
kubernetes.io/ingress.class: nginx
kubernetes.io/tls-acme: "true"
path: /
hosts:
- radarr.bananaspliff.org
tls:
- secretName: radarr-bananaspliff-org
hosts:
- radarr.bananaspliff.org

volumes:
- name: myvolume
persistentVolumeClaim:
claimName: myvolume

volumeMounts:
- name: myvolume
mountPath: "/config"
subPath: "configs/radarr"
- name: myvolume
mountPath: "/downloads"
subPath: "downloads/radarr"
- name: myvolume
mountPath: "/movies"
subPath: "medias/movies"

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi

nodeSelector: {}

tolerations: []

affinity: {}

Binary file modified sftp-0.1.0.tgz
Binary file not shown.
6 changes: 3 additions & 3 deletions sftp/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ spec:
release: {{ .Release.Name }}
spec:
volumes:
- name: myvolume
persistentVolumeClaim:
claimName: myvolume-{{default "default" .Release.Namespace}}
{{ toYaml .Values.volumes | indent 6 }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand All @@ -35,6 +33,8 @@ spec:
volumeMounts:
- name: myvolume
mountPath: "/home/{{default "default" .Release.Namespace}}"
volumeMounts:
{{ toYaml .Values.volumeMounts | indent 12 }}
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
22 changes: 9 additions & 13 deletions sftp/values.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# Default values for sftp.
# This is a YAML-formatted file.
# Declare variables to be passed into your templates.

image:
repository: atmoz/sftp
Expand All @@ -12,17 +9,16 @@ service:
type: NodePort
port: 22

volumes:
- name: myvolume
persistentVolumeClaim:
claimName: myvolume

volumeMounts:
- name: myvolume
mountPath: "/home/banane"

resources: {}
# We usually recommend not to specify default resources and to leave this as a conscious
# choice for the user. This also increases chances charts run on environments with little
# resources, such as Minikube. If you do want to specify resources, uncomment the following
# lines, adjust them as necessary, and remove the curly braces after 'resources:'.
# limits:
# cpu: 100m
# memory: 128Mi
# requests:
# cpu: 100m
# memory: 128Mi

nodeSelector: {}

Expand Down
Binary file modified sonarr-0.1.0.tgz
Binary file not shown.
4 changes: 2 additions & 2 deletions sonarr/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
apiVersion: v1
description: A Sonarr HELM chart for Kubernetes
appVersion: "1.0"
description: Sonarr - Automatic downloader for movies :)
name: sonarr
version: 0.1.0
icon: https://bananaspliff.github.io/helm-charts/sonarr/logo/sonarr.png
Binary file removed sonarr/logo/sonarr.png
Binary file not shown.
14 changes: 2 additions & 12 deletions sonarr/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@ spec:
release: {{ .Release.Name }}
spec:
volumes:
- name: myvolume
persistentVolumeClaim:
claimName: myvolume-{{default "default" .Release.Namespace}}
{{ toYaml .Values.volumes | indent 6 }}
containers:
- name: {{ .Chart.Name }}
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
Expand All @@ -40,15 +38,7 @@ spec:
path: /
port: http
volumeMounts:
- name: myvolume
mountPath: "/config"
subPath: "configs/{{ template "sonarr.fullname" . }}"
- name: myvolume
mountPath: "/downloads"
subPath: "downloads/{{ default "sonarr" .Values.subDomain }}"
- name: myvolume
mountPath: "/tv"
subPath: "medias/series"
{{ toYaml .Values.volumeMounts | indent 12 }}
resources:
{{ toYaml .Values.resources | indent 12 }}
{{- with .Values.nodeSelector }}
Expand Down
Loading

0 comments on commit 20ebb41

Please sign in to comment.