Allow setting of ingressClassName

Signed-off-by: Gavin Mogan <git@gavinmogan.com>
pull/83/head
Gavin Mogan 2021-12-05 10:47:40 -08:00
parent cba266202b
commit db91d8aaa6
No known key found for this signature in database
GPG Key ID: A266F2D3F9D60C45
4 changed files with 8 additions and 2 deletions

View File

@ -16,7 +16,7 @@ type: application
# 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.
version: 1.0.20
version: 1.0.21
# This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application.

View File

@ -72,6 +72,7 @@ The following table lists the configurable parameters of the Portainer chart and
| `service.annotations` | Annotations to add to the service | `{}` |
| `ingress.enabled` | Create an ingress for Portainer | `false` |
| `ingress.annotations` | Annotations to add to the ingress. For instane, `kubernetes.io/ingress.class: nginx` | `{}` |
| `ingress.ingressClassName` | Sets the ingress class name such as `nginx` or `internal` | `` |
| `ingress.hosts.host` | URL for Portainer Web. For instance, `portainer.example.io` | `nil` |
| `ingress.hosts.paths.path` | Path for the Portainer Web. | `/` |
| `ingress.hosts.paths.port` | Port for the Portainer Web. | `9000` |
@ -85,4 +86,4 @@ The following table lists the configurable parameters of the Portainer chart and
| `persistence.annotations` | Annotations to apply to PVC used for persistence | `{}` |
| `persistence.storageClass` | StorageClass to apply to PVC used for persistence | `default` |
| `persistence.accessMode` | AccessMode for persistence | `ReadWriteOnce` |
| `persistence.selector` | Selector for persistence | `nil` |
| `persistence.selector` | Selector for persistence | `nil` |

View File

@ -16,6 +16,9 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- with .Values.ingress.ingressClassName }}
ingressClassName: {{ . }}
{{- end }}
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}

View File

@ -46,6 +46,8 @@ tls:
ingress:
enabled: false
# Allows setting of the ingress class in newer ingress controllers
ingressClassName:
annotations: {}
# nginx.ingress.kubernetes.io/backend-protocol: "HTTPS"
hosts: