diff --git a/charts/longhorn/templates/ingress.yaml b/charts/longhorn/templates/ingress.yaml index ee47f8b8..402c624e 100644 --- a/charts/longhorn/templates/ingress.yaml +++ b/charts/longhorn/templates/ingress.yaml @@ -27,7 +27,7 @@ spec: paths: - path: {{ default "" .Values.ingress.path }} {{- if (semverCompare ">=1.18-0" $.Capabilities.KubeVersion.GitVersion) }} - pathType: ImplementationSpecific + pathType: {{ .Values.ingress.pathType }} {{- end }} backend: {{- if semverCompare ">=1.19-0" $.Capabilities.KubeVersion.GitVersion }} diff --git a/charts/longhorn/values.yaml b/charts/longhorn/values.yaml index 55805f8b..cc0eaf7f 100644 --- a/charts/longhorn/values.yaml +++ b/charts/longhorn/values.yaml @@ -291,6 +291,11 @@ ingress: ## then you can access the UI by using the following full path {{host}}+{{path}} path: / + ## The pathType configures how the Ingress Controller implementation interprets the path + ## There are three supported path types, please see + ## ref: https://kubernetes.io/docs/concepts/services-networking/ingress/#path-types + pathType: ImplementationSpecific + ## Ingress annotations done as key:value pairs ## If you're using kube-lego, you will want to add: ## kubernetes.io/tls-acme: true