Skip to content

Commit

Permalink
Merge pull request #51 from UnstoppableMango/ingressClass
Browse files Browse the repository at this point in the history
Support `ingressClassName`
  • Loading branch information
ressu authored Jan 3, 2024
2 parents 119fecd + 74353d1 commit 3251a94
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions charts/kube-plex/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ The following tables lists the configurable parameters of the Plex chart and the
| `ingress.enabled` | Enables Ingress | `false` |
| `ingress.annotations` | Ingress annotations | `{}` |
| `ingress.labels` | Custom labels | `{}` |
| `ingress.ingressClass` | Ingress class | `nil` |
| `ingress.path` | Ingress path | `/` |
| `ingress.hosts` | Ingress accepted hostnames | `chart-example.local` |
| `ingress.tls` | Ingress TLS configuration | `[]` |
Expand Down
3 changes: 3 additions & 0 deletions charts/kube-plex/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ metadata:
{{ $key }}: {{ $value | quote }}
{{- end }}
spec:
{{- if .Values.ingress.ingressClass }}
ingressClassName: {{ .Values.ingress.ingressClass }}
{{- end }}
rules:
{{- range $host := .Values.ingress.hosts }}
- host: {{ $host }}
Expand Down
2 changes: 2 additions & 0 deletions charts/kube-plex/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,8 @@ probes:

ingress:
enabled: false
# To use a non-default ingress class uncomment the line below
# ingressClass: myClass
# Used to create an Ingress record.
hosts:
- chart-example.local
Expand Down

0 comments on commit 3251a94

Please sign in to comment.