mass update and migrate to networking.k8s.io/v1 api
This commit is contained in:
parent
b0ae6e8f4e
commit
3fd0781699
@ -12,4 +12,4 @@ maintainers:
|
|||||||
name: adguard-home
|
name: adguard-home
|
||||||
sources:
|
sources:
|
||||||
- https://github.com/AdguardTeam/AdGuardHome
|
- https://github.com/AdguardTeam/AdGuardHome
|
||||||
version: 2.2.13
|
version: 2.3.0
|
||||||
|
@ -1,10 +1,9 @@
|
|||||||
{{/* vim: set filetype=mustache: */}}
|
|
||||||
{{/*
|
{{/*
|
||||||
Expand the name of the chart.
|
Expand the name of the chart.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "adguard-home.name" -}}
|
{{- define "adguard-home.name" -}}
|
||||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
{{- end -}}
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Create a default fully qualified app name.
|
Create a default fully qualified app name.
|
||||||
@ -12,21 +11,68 @@ We truncate at 63 chars because some Kubernetes name fields are limited to this
|
|||||||
If release name contains chart name it will be used as a full name.
|
If release name contains chart name it will be used as a full name.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "adguard-home.fullname" -}}
|
{{- define "adguard-home.fullname" -}}
|
||||||
{{- if .Values.fullnameOverride -}}
|
{{- if .Values.fullnameOverride }}
|
||||||
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" -}}
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
{{- else -}}
|
{{- else }}
|
||||||
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
{{- if contains $name .Release.Name -}}
|
{{- if contains $name .Release.Name }}
|
||||||
{{- .Release.Name | trunc 63 | trimSuffix "-" -}}
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
{{- else -}}
|
{{- else }}
|
||||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
{{- end -}}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
*/}}
|
||||||
|
{{- define "adguard-home.postgresql.fullname" -}}
|
||||||
|
{{- printf "%s-%s" .Release.Name "postgresql" | trunc 63 | trimSuffix "-" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified redis app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
*/}}
|
||||||
|
{{- define "adguard-home.redis.fullname" -}}
|
||||||
|
{{- printf "%s-%s" .Release.Name "redis" | trunc 63 | trimSuffix "-" -}}
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Create chart name and version as used by the chart label.
|
Create chart name and version as used by the chart label.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "adguard-home.chart" -}}
|
{{- define "adguard-home.chart" -}}
|
||||||
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" -}}
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
{{- end -}}
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "adguard-home.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "adguard-home.chart" . }}
|
||||||
|
{{ include "adguard-home.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "adguard-home.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "adguard-home.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "adguard-home.serviceAccountName" -}}
|
||||||
|
{{- if .Values.serviceAccount.create }}
|
||||||
|
{{- default (include "adguard-home.fullname" .) .Values.serviceAccount.name }}
|
||||||
|
{{- else }}
|
||||||
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
@ -1,38 +1,61 @@
|
|||||||
{{- if .Values.ingress.enabled -}}
|
{{- if .Values.ingress.enabled -}}
|
||||||
{{- $fullName := include "adguard-home.fullname" . -}}
|
{{- $fullName := include "adguard-home.fullname" . -}}
|
||||||
{{- $ingressPath := .Values.ingress.path -}}
|
{{- $svcPort := .Values.service.port -}}
|
||||||
|
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
|
||||||
|
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
|
||||||
|
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
|
{{- else -}}
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: extensions/v1beta1
|
||||||
|
{{- end }}
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ $fullName }}
|
name: {{ $fullName }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ include "adguard-home.name" . }}
|
{{- include "adguard-home.labels" . | nindent 4 }}
|
||||||
helm.sh/chart: {{ include "adguard-home.chart" . }}
|
{{- with .Values.ingress.annotations }}
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
||||||
{{- with .Values.ingress.annotations }}
|
|
||||||
annotations:
|
annotations:
|
||||||
{{ toYaml . | indent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- if .Values.ingress.tls }}
|
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
|
||||||
tls:
|
ingressClassName: {{ .Values.ingress.className }}
|
||||||
{{- range .Values.ingress.tls }}
|
{{- end }}
|
||||||
- hosts:
|
{{- if .Values.ingress.tls }}
|
||||||
{{- range .hosts }}
|
tls:
|
||||||
- {{ . | quote }}
|
{{- range .Values.ingress.tls }}
|
||||||
{{- end }}
|
- hosts:
|
||||||
secretName: {{ .secretName }}
|
{{- range .hosts }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
secretName: {{ .secretName }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
rules:
|
rules:
|
||||||
{{- range .Values.ingress.hosts }}
|
{{- range .Values.ingress.hosts }}
|
||||||
- host: {{ . | quote }}
|
- host: {{ .host | quote }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: {{ $ingressPath }}
|
{{- range .paths }}
|
||||||
|
- path: {{ .path }}
|
||||||
|
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
|
||||||
|
pathType: {{ .pathType }}
|
||||||
|
{{- end }}
|
||||||
backend:
|
backend:
|
||||||
|
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||||
|
service:
|
||||||
|
name: {{ $fullName }}
|
||||||
|
port:
|
||||||
|
number: {{ $svcPort }}
|
||||||
|
{{- else }}
|
||||||
serviceName: {{ $fullName }}
|
serviceName: {{ $fullName }}
|
||||||
servicePort: http
|
servicePort: {{ $svcPort }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -26,7 +26,7 @@ spec:
|
|||||||
{{- end }}
|
{{- end }}
|
||||||
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
|
externalTrafficPolicy: {{ .Values.service.externalTrafficPolicy }}
|
||||||
ports:
|
ports:
|
||||||
- port: 3000
|
- port: {{ .Values.service.port }}
|
||||||
targetPort: http
|
targetPort: http
|
||||||
protocol: TCP
|
protocol: TCP
|
||||||
name: http
|
name: http
|
||||||
|
@ -195,18 +195,18 @@ timezone: "UTC"
|
|||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
className: ""
|
||||||
annotations: {}
|
annotations: {}
|
||||||
# kubernetes.io/ingress.class: nginx
|
|
||||||
# kubernetes.io/tls-acme: "true"
|
|
||||||
path: /
|
|
||||||
hosts:
|
hosts:
|
||||||
- chart-example.local
|
- host: chart-example.local
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
tls: []
|
tls: []
|
||||||
# - secretName: chart-example-tls
|
# - secretName: chart-example-tls
|
||||||
# hosts:
|
# hosts:
|
||||||
# - chart-example.local
|
# - chart-example.local
|
||||||
|
|
||||||
|
|
||||||
# Probes configuration
|
# Probes configuration
|
||||||
probes:
|
probes:
|
||||||
liveness:
|
liveness:
|
||||||
@ -235,6 +235,7 @@ service:
|
|||||||
annotations: {}
|
annotations: {}
|
||||||
# metallb.universe.tf/address-pool: network-services
|
# metallb.universe.tf/address-pool: network-services
|
||||||
# metallb.universe.tf/allow-shared-ip: adguard-home-svc
|
# metallb.universe.tf/allow-shared-ip: adguard-home-svc
|
||||||
|
port: 80
|
||||||
|
|
||||||
serviceTCP:
|
serviceTCP:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
apiVersion: v2
|
apiVersion: v2
|
||||||
appVersion: 1.25.1
|
appVersion: 1.25.2
|
||||||
description: Unofficial Bitwarden compatible server written in Rust
|
description: Unofficial Bitwarden compatible server written in Rust
|
||||||
home: https://github.com/k8s-at-home/charts/tree/master/charts/bitwardenrs
|
home: https://github.com/k8s-at-home/charts/tree/master/charts/bitwardenrs
|
||||||
icon: https://raw.githubusercontent.com/bitwarden/brand/master/icons/256x256.png
|
icon: https://raw.githubusercontent.com/bitwarden/brand/master/icons/256x256.png
|
||||||
@ -17,4 +17,4 @@ name: bitwarden
|
|||||||
sources:
|
sources:
|
||||||
- https://github.com/dani-garcia/bitwarden_rs
|
- https://github.com/dani-garcia/bitwarden_rs
|
||||||
type: application
|
type: application
|
||||||
version: 2.0.13
|
version: 2.0.15
|
||||||
|
@ -2,7 +2,14 @@
|
|||||||
{{- $fullName := include "bitwarden.fullname" . -}}
|
{{- $fullName := include "bitwarden.fullname" . -}}
|
||||||
{{- $svcPort := .Values.service.port -}}
|
{{- $svcPort := .Values.service.port -}}
|
||||||
{{- $websockets := .Values.bitwarden.websockets -}}
|
{{- $websockets := .Values.bitwarden.websockets -}}
|
||||||
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
|
||||||
|
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
|
||||||
|
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: extensions/v1beta1
|
||||||
@ -17,6 +24,9 @@ metadata:
|
|||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
|
||||||
|
ingressClassName: {{ .Values.ingress.className }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.ingress.tls }}
|
{{- if .Values.ingress.tls }}
|
||||||
tls:
|
tls:
|
||||||
{{- range .Values.ingress.tls }}
|
{{- range .Values.ingress.tls }}
|
||||||
@ -33,20 +43,50 @@ spec:
|
|||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
{{- range .paths }}
|
{{- range .paths }}
|
||||||
- path: {{ . }}
|
- path: {{ .path }}
|
||||||
|
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
|
||||||
|
pathType: {{ .pathType }}
|
||||||
|
{{- end }}
|
||||||
backend:
|
backend:
|
||||||
|
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||||
|
service:
|
||||||
|
name: {{ $fullName }}
|
||||||
|
port:
|
||||||
|
number: {{ $svcPort }}
|
||||||
|
{{- else }}
|
||||||
serviceName: {{ $fullName }}
|
serviceName: {{ $fullName }}
|
||||||
servicePort: {{ $svcPort }}
|
servicePort: {{ $svcPort }}
|
||||||
|
{{- end }}
|
||||||
{{- if $websockets.enabled }}
|
{{- if $websockets.enabled }}
|
||||||
- path: {{ . | trimSuffix "/" }}/notifications/hub
|
- path: {{ .path | trimSuffix "/" }}/notifications/hub
|
||||||
|
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
|
||||||
|
pathType: {{ .pathType }}
|
||||||
|
{{- end }}
|
||||||
backend:
|
backend:
|
||||||
|
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||||
|
service:
|
||||||
|
name: {{ $fullName }}
|
||||||
|
port:
|
||||||
|
number: {{ $websockets.port }}
|
||||||
|
{{- else }}
|
||||||
serviceName: {{ $fullName }}
|
serviceName: {{ $fullName }}
|
||||||
servicePort: {{ $websockets.port }}
|
servicePort: {{ $websockets.port }}
|
||||||
- path: {{ . | trimSuffix "/" }}/notifications/hub/negotiate
|
{{- end }}
|
||||||
|
- path: {{ .path | trimSuffix "/" }}/notifications/hub/negotiate
|
||||||
|
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
|
||||||
|
pathType: {{ .pathType }}
|
||||||
|
{{- end }}
|
||||||
backend:
|
backend:
|
||||||
|
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||||
|
service:
|
||||||
|
name: {{ $fullName }}
|
||||||
|
port:
|
||||||
|
number: {{ $svcPort }}
|
||||||
|
{{- else }}
|
||||||
serviceName: {{ $fullName }}
|
serviceName: {{ $fullName }}
|
||||||
servicePort: {{ $svcPort}}
|
servicePort: {{ $svcPort}}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -5,7 +5,7 @@ replicaCount: 1
|
|||||||
image:
|
image:
|
||||||
repository: vaultwarden/server
|
repository: vaultwarden/server
|
||||||
pullPolicy: IfNotPresent
|
pullPolicy: IfNotPresent
|
||||||
tag: "1.25.1"
|
tag: "1.25.2"
|
||||||
|
|
||||||
imagePullSecrets: []
|
imagePullSecrets: []
|
||||||
nameOverride: ""
|
nameOverride: ""
|
||||||
@ -146,12 +146,15 @@ service:
|
|||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
className: ""
|
||||||
annotations: {}
|
annotations: {}
|
||||||
# kubernetes.io/ingress.class: nginx
|
# kubernetes.io/ingress.class: nginx
|
||||||
# kubernetes.io/tls-acme: "true"
|
# kubernetes.io/tls-acme: "true"
|
||||||
hosts:
|
hosts:
|
||||||
- host: chart-example.local
|
- host: chart-example.local
|
||||||
paths: []
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
tls: []
|
tls: []
|
||||||
# - secretName: chart-example-tls
|
# - secretName: chart-example-tls
|
||||||
# hosts:
|
# hosts:
|
||||||
|
@ -15,7 +15,7 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.2.7
|
version: 0.3.0
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
@ -2,7 +2,12 @@
|
|||||||
{{- $fullName := include "mastodon.fullname" . -}}
|
{{- $fullName := include "mastodon.fullname" . -}}
|
||||||
{{- $webPort := .Values.mastodon.web.port -}}
|
{{- $webPort := .Values.mastodon.web.port -}}
|
||||||
{{- $streamingPort := .Values.mastodon.streaming.port -}}
|
{{- $streamingPort := .Values.mastodon.streaming.port -}}
|
||||||
{{- if or (.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") (not (.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress")) }}
|
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
|
||||||
|
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
|
||||||
|
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
@ -19,6 +24,9 @@ metadata:
|
|||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
|
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
|
||||||
|
ingressClassName: {{ .Values.ingress.className }}
|
||||||
|
{{- end }}
|
||||||
{{- if .Values.ingress.tls }}
|
{{- if .Values.ingress.tls }}
|
||||||
tls:
|
tls:
|
||||||
{{- range .Values.ingress.tls }}
|
{{- range .Values.ingress.tls }}
|
||||||
@ -36,8 +44,11 @@ spec:
|
|||||||
paths:
|
paths:
|
||||||
{{- range .paths }}
|
{{- range .paths }}
|
||||||
- path: {{ .path }}
|
- path: {{ .path }}
|
||||||
|
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
|
||||||
|
pathType: {{ .pathType }}
|
||||||
|
{{- end }}
|
||||||
backend:
|
backend:
|
||||||
{{- if or ($.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") (not ($.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress")) }}
|
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||||
service:
|
service:
|
||||||
name: {{ $fullName }}-web
|
name: {{ $fullName }}-web
|
||||||
port:
|
port:
|
||||||
@ -46,12 +57,12 @@ spec:
|
|||||||
serviceName: {{ $fullName }}-web
|
serviceName: {{ $fullName }}-web
|
||||||
servicePort: {{ $webPort }}
|
servicePort: {{ $webPort }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if or ($.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") (not ($.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress")) }}
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
{{- end }}
|
|
||||||
- path: {{ .path }}api/v1/streaming
|
- path: {{ .path }}api/v1/streaming
|
||||||
|
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
|
||||||
|
pathType: {{ .pathType }}
|
||||||
|
{{- end }}
|
||||||
backend:
|
backend:
|
||||||
{{- if or ($.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") (not ($.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress")) }}
|
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||||
service:
|
service:
|
||||||
name: {{ $fullName }}-streaming
|
name: {{ $fullName }}-streaming
|
||||||
port:
|
port:
|
||||||
@ -60,9 +71,6 @@ spec:
|
|||||||
serviceName: {{ $fullName }}-streaming
|
serviceName: {{ $fullName }}-streaming
|
||||||
servicePort: {{ $streamingPort }}
|
servicePort: {{ $streamingPort }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- if or ($.Capabilities.APIVersions.Has "networking.k8s.io/v1/Ingress") (not ($.Capabilities.APIVersions.Has "networking.k8s.io/v1beta1/Ingress")) }}
|
|
||||||
pathType: ImplementationSpecific
|
|
||||||
{{- end }}
|
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -29,6 +29,9 @@ mastodon:
|
|||||||
# available locales: https://github.com/tootsuite/mastodon/blob/master/config/application.rb#L43
|
# available locales: https://github.com/tootsuite/mastodon/blob/master/config/application.rb#L43
|
||||||
locale: en
|
locale: en
|
||||||
local_domain: mastodon.local
|
local_domain: mastodon.local
|
||||||
|
# Use of WEB_DOMAIN requires careful consideration: https://docs.joinmastodon.org/admin/config/#federation
|
||||||
|
# You must redirect the path LOCAL_DOMAIN/.well-known/ to WEB_DOMAIN/.well-known/ as described
|
||||||
|
# web_domain: mastodon.example.com
|
||||||
persistence:
|
persistence:
|
||||||
assets:
|
assets:
|
||||||
# ReadWriteOnce is more widely supported than ReadWriteMany, but limits
|
# ReadWriteOnce is more widely supported than ReadWriteMany, but limits
|
||||||
@ -51,6 +54,8 @@ mastodon:
|
|||||||
endpoint: https://us-east-1.linodeobjects.com
|
endpoint: https://us-east-1.linodeobjects.com
|
||||||
hostname: us-east-1.linodeobjects.com
|
hostname: us-east-1.linodeobjects.com
|
||||||
region: ""
|
region: ""
|
||||||
|
# If you have a caching proxy, enter its base URL here.
|
||||||
|
alias_host: ""
|
||||||
# these must be set manually; autogenerated keys are rotated on each upgrade
|
# these must be set manually; autogenerated keys are rotated on each upgrade
|
||||||
secrets:
|
secrets:
|
||||||
secret_key_base: ""
|
secret_key_base: ""
|
||||||
@ -62,7 +67,7 @@ mastodon:
|
|||||||
concurrency: 25
|
concurrency: 25
|
||||||
smtp:
|
smtp:
|
||||||
auth_method: plain
|
auth_method: plain
|
||||||
ca_file:
|
ca_file: /etc/ssl/certs/ca-certificates.crt
|
||||||
delivery_method: smtp
|
delivery_method: smtp
|
||||||
domain:
|
domain:
|
||||||
enable_starttls_auto: true
|
enable_starttls_auto: true
|
||||||
@ -80,29 +85,28 @@ mastodon:
|
|||||||
# the node running the pod, which is unrelated to the resources allocated to
|
# the node running the pod, which is unrelated to the resources allocated to
|
||||||
# the pod by k8s
|
# the pod by k8s
|
||||||
workers: 1
|
workers: 1
|
||||||
|
# The base url for streaming can be set if the streaming API is deployed to
|
||||||
|
# a different domain/subdomain.
|
||||||
|
# base_url: wws://streaming.example.com
|
||||||
web:
|
web:
|
||||||
port: 3000
|
port: 3000
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: false
|
||||||
|
className: ""
|
||||||
annotations: {}
|
annotations: {}
|
||||||
#kubernetes.io/ingress.class: nginx
|
# nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
||||||
#kubernetes.io/tls-acme: "true"
|
# nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
||||||
# cert-manager.io/cluster-issuer: "letsencrypt"
|
# nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
||||||
#
|
|
||||||
# ensure that NGINX's upload size matches Mastodon's
|
|
||||||
# for the K8s ingress controller:
|
|
||||||
# nginx.ingress.kubernetes.io/proxy-body-size: 40m
|
|
||||||
# for the NGINX ingress controller:
|
|
||||||
# nginx.org/client-max-body-size: 40m
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: mastodon.local
|
- host: chart-example.local
|
||||||
paths:
|
paths:
|
||||||
- path: '/'
|
- path: /
|
||||||
tls:
|
pathType: ImplementationSpecific
|
||||||
- secretName: mastodon-tls
|
tls: []
|
||||||
hosts:
|
# - secretName: chart-example-tls
|
||||||
- mastodon.local
|
# hosts:
|
||||||
|
# - chart-example.local
|
||||||
|
|
||||||
# https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch#parameters
|
# https://github.com/bitnami/charts/tree/master/bitnami/elasticsearch#parameters
|
||||||
elasticsearch:
|
elasticsearch:
|
||||||
@ -112,10 +116,8 @@ elasticsearch:
|
|||||||
# RAILS_ENV=production bundle exec rake chewy:sync
|
# RAILS_ENV=production bundle exec rake chewy:sync
|
||||||
# (https://docs.joinmastodon.org/admin/optional/elasticsearch/)
|
# (https://docs.joinmastodon.org/admin/optional/elasticsearch/)
|
||||||
enabled: true
|
enabled: true
|
||||||
# may be removed once https://github.com/tootsuite/mastodon/pull/13828 is part
|
|
||||||
# of a tagged release
|
|
||||||
image:
|
image:
|
||||||
tag: 6
|
tag: 7
|
||||||
|
|
||||||
# https://github.com/bitnami/charts/tree/master/bitnami/postgresql#parameters
|
# https://github.com/bitnami/charts/tree/master/bitnami/postgresql#parameters
|
||||||
postgresql:
|
postgresql:
|
||||||
@ -132,14 +134,113 @@ postgresql:
|
|||||||
|
|
||||||
# https://github.com/bitnami/charts/tree/master/bitnami/redis#parameters
|
# https://github.com/bitnami/charts/tree/master/bitnami/redis#parameters
|
||||||
redis:
|
redis:
|
||||||
enabled: true
|
# you must set a password; the password generated by the redis chart will be
|
||||||
auth:
|
# rotated on each upgrade:
|
||||||
password: ""
|
password: ""
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
port: 80
|
port: 80
|
||||||
|
|
||||||
|
externalAuth:
|
||||||
|
oidc:
|
||||||
|
# OpenID Connect support is proposed in PR #16221 and awaiting merge.
|
||||||
|
enabled: false
|
||||||
|
# display_name: "example-label"
|
||||||
|
# issuer: https://login.example.space/auth/realms/example-space
|
||||||
|
# discovery: true
|
||||||
|
# scope: "openid,profile"
|
||||||
|
# uid_field: uid
|
||||||
|
# client_id: mastodon
|
||||||
|
# client_secret: SECRETKEY
|
||||||
|
# redirect_uri: https://example.com/auth/auth/openid_connect/callback
|
||||||
|
# assume_email_is_verified: true
|
||||||
|
# client_auth_method:
|
||||||
|
# response_type:
|
||||||
|
# response_mode:
|
||||||
|
# display:
|
||||||
|
# prompt:
|
||||||
|
# send_nonce:
|
||||||
|
# send_scope_to_token_endpoint:
|
||||||
|
# idp_logout_redirect_uri:
|
||||||
|
# http_scheme:
|
||||||
|
# host:
|
||||||
|
# port:
|
||||||
|
# jwks_uri:
|
||||||
|
# auth_endpoint:
|
||||||
|
# token_endpoint:
|
||||||
|
# user_info_endpoint:
|
||||||
|
# end_session_endpoint:
|
||||||
|
saml:
|
||||||
|
enabled: false
|
||||||
|
# acs_url: http://mastodon.example.com/auth/auth/saml/callback
|
||||||
|
# issuer: mastodon
|
||||||
|
# idp_sso_target_url: https://login.example.com/auth/realms/example/protocol/saml
|
||||||
|
# idp_cert: '-----BEGIN CERTIFICATE-----[your_cert_content]-----END CERTIFICATE-----'
|
||||||
|
# idp_cert_fingerprint:
|
||||||
|
# name_identifier_format: urn:oasis:names:tc:SAML:1.1:nameid-format:unspecified
|
||||||
|
# cert:
|
||||||
|
# private_key:
|
||||||
|
# want_assertion_signed: true
|
||||||
|
# want_assertion_encrypted: true
|
||||||
|
# assume_email_is_verified: true
|
||||||
|
# uid_attribute: "urn:oid:0.9.2342.19200300.100.1.1"
|
||||||
|
# attributes_statements:
|
||||||
|
# uid: "urn:oid:0.9.2342.19200300.100.1.1"
|
||||||
|
# email: "urn:oid:1.3.6.1.4.1.5923.1.1.1.6"
|
||||||
|
# full_name: "urn:oid:2.16.840.1.113730.3.1.241"
|
||||||
|
# first_name: "urn:oid:2.5.4.42"
|
||||||
|
# last_name: "urn:oid:2.5.4.4"
|
||||||
|
# verified:
|
||||||
|
# verified_email:
|
||||||
|
oauth_global:
|
||||||
|
# Force redirect local login to CAS. Does not function with SAML or LDAP.
|
||||||
|
oauth_redirect_at_sign_in: false
|
||||||
|
cas:
|
||||||
|
enabled: false
|
||||||
|
# url: https://sso.myserver.com
|
||||||
|
# host: sso.myserver.com
|
||||||
|
# port: 443
|
||||||
|
# ssl: true
|
||||||
|
# validate_url:
|
||||||
|
# callback_url:
|
||||||
|
# logout_url:
|
||||||
|
# login_url:
|
||||||
|
# uid_field: 'user'
|
||||||
|
# ca_path:
|
||||||
|
# disable_ssl_verification: false
|
||||||
|
# assume_email_is_verified: true
|
||||||
|
# keys:
|
||||||
|
# uid: 'user'
|
||||||
|
# name: 'name'
|
||||||
|
# email: 'email'
|
||||||
|
# nickname: 'nickname'
|
||||||
|
# first_name: 'firstname'
|
||||||
|
# last_name: 'lastname'
|
||||||
|
# location: 'location'
|
||||||
|
# image: 'image'
|
||||||
|
# phone: 'phone'
|
||||||
|
pam:
|
||||||
|
enabled: false
|
||||||
|
# email_domain: example.com
|
||||||
|
# default_service: rpam
|
||||||
|
# controlled_service: rpam
|
||||||
|
ldap:
|
||||||
|
enabled: false
|
||||||
|
# host: myservice.namespace.svc
|
||||||
|
# port: 389
|
||||||
|
# method: simple_tls
|
||||||
|
# base:
|
||||||
|
# bind_on:
|
||||||
|
# password:
|
||||||
|
# uid: cn
|
||||||
|
# mail: mail
|
||||||
|
# search_filter: "(|(%{uid}=%{email})(%{mail}=%{email}))"
|
||||||
|
# uid_conversion:
|
||||||
|
# enabled: true
|
||||||
|
# search: "., -"
|
||||||
|
# replace: _
|
||||||
|
|
||||||
# https://github.com/tootsuite/mastodon/blob/master/Dockerfile#L88
|
# https://github.com/tootsuite/mastodon/blob/master/Dockerfile#L88
|
||||||
#
|
#
|
||||||
# if you manually change the UID/GID environment variables, ensure these values
|
# if you manually change the UID/GID environment variables, ensure these values
|
||||||
|
@ -11,5 +11,5 @@ dependencies:
|
|||||||
repository: https://charts.bitnami.com/bitnami
|
repository: https://charts.bitnami.com/bitnami
|
||||||
version: 12.3.2
|
version: 12.3.2
|
||||||
type: application
|
type: application
|
||||||
version: 0.1.12
|
version: 0.1.13
|
||||||
appVersion: 4.2.2
|
appVersion: 4.2.2
|
||||||
|
@ -646,19 +646,20 @@ service:
|
|||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
annotations:
|
className: ""
|
||||||
#kubernetes.io/ingress.class: nginx
|
annotations: {}
|
||||||
#kubernetes.io/tls-acme: "true"
|
# nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
||||||
#nginx.ingress.kubernetes.io/proxy-body-size: "0"
|
# nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
||||||
#nginx.ingress.kubernetes.io/proxy-read-timeout: "600"
|
# nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
||||||
#nginx.ingress.kubernetes.io/proxy-send-timeout: "600"
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: peertube.example.com
|
- host: chart-example.local
|
||||||
paths: ["/"]
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
tls: []
|
tls: []
|
||||||
# - secretName: peertube.example.com-tls
|
# - secretName: chart-example-tls
|
||||||
# hosts:
|
# hosts:
|
||||||
# - peertube.example.com
|
# - chart-example.local
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
# PeerTube Data (/var/www/peertube)
|
# PeerTube Data (/var/www/peertube)
|
||||||
|
@ -15,7 +15,7 @@ type: application
|
|||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
# Versions are expected to follow Semantic Versioning (https://semver.org/)
|
||||||
version: 0.1.2
|
version: 0.1.3
|
||||||
|
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application. Versions are not expected to
|
# incremented each time you make changes to the application. Versions are not expected to
|
||||||
|
@ -59,12 +59,13 @@ service:
|
|||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
className: ""
|
||||||
annotations: {}
|
annotations: {}
|
||||||
# kubernetes.io/ingress.class: nginx
|
|
||||||
# kubernetes.io/tls-acme: "true"
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: chart-example.local
|
- host: chart-example.local
|
||||||
paths: ["/"]
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
tls: []
|
tls: []
|
||||||
# - secretName: chart-example-tls
|
# - secretName: chart-example-tls
|
||||||
# hosts:
|
# hosts:
|
||||||
|
@ -11,4 +11,4 @@ sources:
|
|||||||
- https://github.com/owkin/charts/tree/master/pypiserver
|
- https://github.com/owkin/charts/tree/master/pypiserver
|
||||||
- https://github.com/pypiserver/pypiserver
|
- https://github.com/pypiserver/pypiserver
|
||||||
- https://pypi.org/project/pypiserver/
|
- https://pypi.org/project/pypiserver/
|
||||||
version: 2.3.0
|
version: 2.4.0
|
||||||
|
@ -1,16 +1,79 @@
|
|||||||
{{/* vim: set filetype=mustache: */}}
|
|
||||||
{{/*
|
{{/*
|
||||||
Expand the name of the chart.
|
Expand the name of the chart.
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "pypiserver.name" -}}
|
{{- define "pypiserver.name" -}}
|
||||||
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" -}}
|
{{- default .Chart.Name .Values.nameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
{{- end -}}
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
If release name contains chart name it will be used as a full name.
|
||||||
|
*/}}
|
||||||
|
{{- define "pypiserver.fullname" -}}
|
||||||
|
{{- if .Values.fullnameOverride }}
|
||||||
|
{{- .Values.fullnameOverride | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- $name := default .Chart.Name .Values.nameOverride }}
|
||||||
|
{{- if contains $name .Release.Name }}
|
||||||
|
{{- .Release.Name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- else }}
|
||||||
|
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
{{/*
|
{{/*
|
||||||
Create a default fully qualified app name.
|
Create a default fully qualified app name.
|
||||||
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
*/}}
|
*/}}
|
||||||
{{- define "pypiserver.fullname" -}}
|
{{- define "pypiserver.postgresql.fullname" -}}
|
||||||
{{- $name := default .Chart.Name .Values.nameOverride -}}
|
{{- printf "%s-%s" .Release.Name "postgresql" | trunc 63 | trimSuffix "-" -}}
|
||||||
{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" -}}
|
|
||||||
{{- end -}}
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create a default fully qualified redis app name.
|
||||||
|
We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec).
|
||||||
|
*/}}
|
||||||
|
{{- define "pypiserver.redis.fullname" -}}
|
||||||
|
{{- printf "%s-%s" .Release.Name "redis" | trunc 63 | trimSuffix "-" -}}
|
||||||
|
{{- end -}}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create chart name and version as used by the chart label.
|
||||||
|
*/}}
|
||||||
|
{{- define "pypiserver.chart" -}}
|
||||||
|
{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Common labels
|
||||||
|
*/}}
|
||||||
|
{{- define "pypiserver.labels" -}}
|
||||||
|
helm.sh/chart: {{ include "pypiserver.chart" . }}
|
||||||
|
{{ include "pypiserver.selectorLabels" . }}
|
||||||
|
{{- if .Chart.AppVersion }}
|
||||||
|
app.kubernetes.io/version: {{ .Chart.AppVersion | quote }}
|
||||||
|
{{- end }}
|
||||||
|
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Selector labels
|
||||||
|
*/}}
|
||||||
|
{{- define "pypiserver.selectorLabels" -}}
|
||||||
|
app.kubernetes.io/name: {{ include "pypiserver.name" . }}
|
||||||
|
app.kubernetes.io/instance: {{ .Release.Name }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{/*
|
||||||
|
Create the name of the service account to use
|
||||||
|
*/}}
|
||||||
|
{{- define "pypiserver.serviceAccountName" -}}
|
||||||
|
{{- if .Values.serviceAccount.create }}
|
||||||
|
{{- default (include "pypiserver.fullname" .) .Values.serviceAccount.name }}
|
||||||
|
{{- else }}
|
||||||
|
{{- default "default" .Values.serviceAccount.name }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
@ -1,39 +1,61 @@
|
|||||||
{{- if .Values.ingress.enabled -}}
|
{{- if .Values.ingress.enabled -}}
|
||||||
{{- $fullName := include "pypiserver.fullname" . -}}
|
{{- $fullName := include "pypiserver.fullname" . -}}
|
||||||
{{- $servicePort := .Values.service.port -}}
|
{{- $svcPort := .Values.service.port -}}
|
||||||
{{- $ingressPath := .Values.ingress.path -}}
|
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
|
||||||
|
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
|
||||||
|
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
|
{{- else -}}
|
||||||
|
apiVersion: extensions/v1beta1
|
||||||
|
{{- end }}
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: {{ $fullName }}
|
name: {{ $fullName }}
|
||||||
labels:
|
labels:
|
||||||
app.kubernetes.io/name: {{ template "pypiserver.name" . }}
|
{{- include "pypiserver.labels" . | nindent 4 }}
|
||||||
helm.sh/chart: {{ .Chart.Name }}-{{ .Chart.Version }}
|
{{- with .Values.ingress.annotations }}
|
||||||
app.kubernetes.io/managed-by: {{ .Release.Service }}
|
|
||||||
app.kubernetes.io/instance: {{ .Release.Name }}
|
|
||||||
{{- with .Values.ingress.annotations }}
|
|
||||||
annotations:
|
annotations:
|
||||||
{{ toYaml . | indent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- if .Values.ingress.tls }}
|
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
|
||||||
tls:
|
ingressClassName: {{ .Values.ingress.className }}
|
||||||
{{- range .Values.ingress.tls }}
|
{{- end }}
|
||||||
- hosts:
|
{{- if .Values.ingress.tls }}
|
||||||
{{- range .hosts }}
|
tls:
|
||||||
- {{ . }}
|
{{- range .Values.ingress.tls }}
|
||||||
{{- end }}
|
- hosts:
|
||||||
secretName: {{ .secretName }}
|
{{- range .hosts }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
secretName: {{ .secretName }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
rules:
|
rules:
|
||||||
{{- range .Values.ingress.hosts }}
|
{{- range .Values.ingress.hosts }}
|
||||||
- host: {{ . }}
|
- host: {{ .host | quote }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: {{ $ingressPath }}
|
{{- range .paths }}
|
||||||
|
- path: {{ .path }}
|
||||||
|
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
|
||||||
|
pathType: {{ .pathType }}
|
||||||
|
{{- end }}
|
||||||
backend:
|
backend:
|
||||||
|
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||||
|
service:
|
||||||
|
name: {{ $fullName }}
|
||||||
|
port:
|
||||||
|
number: {{ $svcPort }}
|
||||||
|
{{- else }}
|
||||||
serviceName: {{ $fullName }}
|
serviceName: {{ $fullName }}
|
||||||
servicePort: {{ $servicePort }}
|
servicePort: {{ $svcPort }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -28,15 +28,17 @@ podLabels: {}
|
|||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
labels: {}
|
className: ""
|
||||||
annotations: {}
|
annotations: {}
|
||||||
# kubernetes.io/ingress.class: nginx
|
hosts:
|
||||||
# kubernetes.io/tls-acme: "true"
|
- host: chart-example.local
|
||||||
# path: "/pypiserver"
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
tls: []
|
tls: []
|
||||||
# - secretName: pypiserver.cluster.local
|
# - secretName: chart-example-tls
|
||||||
# hosts:
|
# hosts:
|
||||||
# - pypiserver.cluster.local
|
# - chart-example.local
|
||||||
|
|
||||||
service:
|
service:
|
||||||
type: ClusterIP
|
type: ClusterIP
|
||||||
|
@ -2,5 +2,5 @@ apiVersion: v2
|
|||||||
appVersion: "1.4.13"
|
appVersion: "1.4.13"
|
||||||
description: A Helm chart for Kubernetes
|
description: A Helm chart for Kubernetes
|
||||||
name: roundcube
|
name: roundcube
|
||||||
version: 0.2.8
|
version: 0.2.9
|
||||||
icon: https://github.com/roundcube/roundcubemail/blob/master/skins/classic/images/roundcube_logo.png
|
icon: https://github.com/roundcube/roundcubemail/blob/master/skins/classic/images/roundcube_logo.png
|
||||||
|
@ -15,12 +15,13 @@ service:
|
|||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
className: ""
|
||||||
annotations: {}
|
annotations: {}
|
||||||
# kubernetes.io/ingress.class: nginx
|
|
||||||
# kubernetes.io/tls-acme: "true"
|
|
||||||
path: /
|
|
||||||
hosts:
|
hosts:
|
||||||
- chart-example.local
|
- host: chart-example.local
|
||||||
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
tls: []
|
tls: []
|
||||||
# - secretName: chart-example-tls
|
# - secretName: chart-example-tls
|
||||||
# hosts:
|
# hosts:
|
||||||
|
@ -2,7 +2,7 @@ apiVersion: v2
|
|||||||
name: wikijs
|
name: wikijs
|
||||||
# This is the chart version. This version number should be incremented each time you make changes
|
# This is the chart version. This version number should be incremented each time you make changes
|
||||||
# to the chart and its templates, including the app version.
|
# to the chart and its templates, including the app version.
|
||||||
version: 2.2.22
|
version: 2.3.0
|
||||||
# This is the version number of the application being deployed. This version number should be
|
# This is the version number of the application being deployed. This version number should be
|
||||||
# incremented each time you make changes to the application.
|
# incremented each time you make changes to the application.
|
||||||
AppVersion: 2.5.285
|
AppVersion: 2.5.285
|
||||||
|
@ -1,7 +1,14 @@
|
|||||||
{{- if .Values.ingress.enabled -}}
|
{{- if .Values.ingress.enabled -}}
|
||||||
{{- $fullName := include "wiki.fullname" . -}}
|
{{- $fullName := include "wiki.fullname" . -}}
|
||||||
{{- $svcPort := .Values.service.port -}}
|
{{- $svcPort := .Values.service.port -}}
|
||||||
{{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
{{- if and .Values.ingress.className (not (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion)) }}
|
||||||
|
{{- if not (hasKey .Values.ingress.annotations "kubernetes.io/ingress.class") }}
|
||||||
|
{{- $_ := set .Values.ingress.annotations "kubernetes.io/ingress.class" .Values.ingress.className}}
|
||||||
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
|
{{- if semverCompare ">=1.19-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
{{- else if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}}
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1beta1
|
||||||
{{- else -}}
|
{{- else -}}
|
||||||
apiVersion: extensions/v1beta1
|
apiVersion: extensions/v1beta1
|
||||||
@ -16,26 +23,39 @@ metadata:
|
|||||||
{{- toYaml . | nindent 4 }}
|
{{- toYaml . | nindent 4 }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
spec:
|
spec:
|
||||||
{{- if .Values.ingress.tls }}
|
{{- if and .Values.ingress.className (semverCompare ">=1.18-0" .Capabilities.KubeVersion.GitVersion) }}
|
||||||
tls:
|
ingressClassName: {{ .Values.ingress.className }}
|
||||||
{{- range .Values.ingress.tls }}
|
{{- end }}
|
||||||
- hosts:
|
{{- if .Values.ingress.tls }}
|
||||||
{{- range .hosts }}
|
tls:
|
||||||
- {{ . | quote }}
|
{{- range .Values.ingress.tls }}
|
||||||
{{- end }}
|
- hosts:
|
||||||
secretName: {{ .secretName }}
|
{{- range .hosts }}
|
||||||
|
- {{ . | quote }}
|
||||||
|
{{- end }}
|
||||||
|
secretName: {{ .secretName }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
|
||||||
rules:
|
rules:
|
||||||
{{- range .Values.ingress.hosts }}
|
{{- range .Values.ingress.hosts }}
|
||||||
- host: {{ .host | quote }}
|
- host: {{ .host | quote }}
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
{{- range .paths }}
|
{{- range .paths }}
|
||||||
- path: {{ . }}
|
- path: {{ .path }}
|
||||||
|
{{- if and .pathType (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }}
|
||||||
|
pathType: {{ .pathType }}
|
||||||
|
{{- end }}
|
||||||
backend:
|
backend:
|
||||||
|
{{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }}
|
||||||
|
service:
|
||||||
|
name: {{ $fullName }}
|
||||||
|
port:
|
||||||
|
number: {{ $svcPort }}
|
||||||
|
{{- else }}
|
||||||
serviceName: {{ $fullName }}
|
serviceName: {{ $fullName }}
|
||||||
servicePort: {{ $svcPort }}
|
servicePort: {{ $svcPort }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
{{- end }}
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
@ -44,12 +44,13 @@ service:
|
|||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: false
|
enabled: false
|
||||||
|
className: ""
|
||||||
annotations: {}
|
annotations: {}
|
||||||
# kubernetes.io/ingress.class: nginx
|
|
||||||
# kubernetes.io/tls-acme: "true"
|
|
||||||
hosts:
|
hosts:
|
||||||
- host: wiki.local
|
- host: chart-example.local
|
||||||
paths: ["/"]
|
paths:
|
||||||
|
- path: /
|
||||||
|
pathType: ImplementationSpecific
|
||||||
tls: []
|
tls: []
|
||||||
# - secretName: chart-example-tls
|
# - secretName: chart-example-tls
|
||||||
# hosts:
|
# hosts:
|
||||||
|
Loading…
Reference in New Issue
Block a user