Skip to content

Commit

Permalink
feat(ingress): Add ingressClassName to ingress of UI/API/REGISTRY (#…
Browse files Browse the repository at this point in the history
…101)

* feat(ingress): Add `ingressClassName` to ingress of UI/API/REGISTRY
  • Loading branch information
ArkShocer authored Mar 5, 2024
1 parent 55815e6 commit 97c93e3
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -301,18 +301,21 @@ Once you have completed the above steps you can complete the file values.yaml to
| ui.serviceType | Yes | ClusterIP/NodePort/LoadBalancer/ExternalName |
| ui.securityContext | No | Fill securityContext field |
| ui.containerSecurityContext | No | Fill securityContext field in the container spec |
| ingress.ui.ingressClassName | Yes | Default is set to nginx |
| ingress.ui.useTls | Yes | true/false |
| ingress.ui.enabled | Yes | true/false |
| ingress.ui.domain | Yes | |
| ingress.ui.path | Yes | ImplementationSpecific/Exact/Prefix |
| ingress.ui.pathType | Yes | |
| ingress.ui.annotations | Yes | Ingress annotations |
| ingress.api.ingressClassName | Yes | Default is set to nginx |
| ingress.api.useTls | Yes | |
| ingress.api.enabled | Yes | |
| ingress.api.domain | Yes | |
| ingress.api.path | Yes | |
| ingress.api.pathType | Yes | ImplementationSpecific/Exact/Prefix |
| ingress.api.annotations | Yes | Ingress annotations |
| ingress.registry.ingressClassName | Yes | Default is set to nginx |
| ingress.registry.useTls | Yes | |
| ingress.registry.enabled | Yes | |
| ingress.registry.domain | Yes | |
Expand Down
2 changes: 1 addition & 1 deletion charts/terrakube/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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.
# Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 3.14.2
version: 3.15.0

# 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
Expand Down
1 change: 1 addition & 0 deletions charts/terrakube/templates/ingress-api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ingressClassName: {{ .Values.ingress.api.ingressClassName | nginx }}
{{ if and .Values.ingress.useTls .Values.ingress.includeTlsHosts }}
tls:
- hosts:
Expand Down
1 change: 1 addition & 0 deletions charts/terrakube/templates/ingress-registry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ingressClassName: {{ .Values.ingress.registry.ingressClassName | nginx }}
{{ if and .Values.ingress.useTls .Values.ingress.includeTlsHosts }}
tls:
- hosts:
Expand Down
1 change: 1 addition & 0 deletions charts/terrakube/templates/ingress-ui.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ metadata:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
ingressClassName: {{ .Values.ingress.ui.ingressClassName | nginx }}
{{ if and .Values.ingress.useTls .Values.ingress.includeTlsHosts }}
tls:
- hosts:
Expand Down
3 changes: 3 additions & 0 deletions charts/terrakube/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ ingress:
domain: "terrakube-ui.minikube.net"
path: "/"
pathType: "Prefix"
ingressClassName: "nginx"
tlsSecretName: tls-secret-ui-terrakube
annotations:
nginx.ingress.kubernetes.io/use-regex: "true"
Expand All @@ -256,6 +257,7 @@ ingress:
domain: "terrakube-api.minikube.net"
path: "/"
pathType: "Prefix"
ingressClassName: "nginx"
tlsSecretName: tls-secret-api-terrakube
annotations:
nginx.ingress.kubernetes.io/use-regex: "true"
Expand All @@ -265,6 +267,7 @@ ingress:
domain: "terrakube-reg.minikube.net"
path: "/"
pathType: "Prefix"
ingressClassName: "nginx"
tlsSecretName: tls-secret-reg-terrakube
annotations:
nginx.ingress.kubernetes.io/use-regex: "true"
Expand Down

0 comments on commit 97c93e3

Please sign in to comment.