Skip to content

Commit 97c93e3

Browse files
authored
feat(ingress): Add ingressClassName to ingress of UI/API/REGISTRY (#101)
* feat(ingress): Add `ingressClassName` to ingress of UI/API/REGISTRY
1 parent 55815e6 commit 97c93e3

File tree

6 files changed

+10
-1
lines changed

6 files changed

+10
-1
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -301,18 +301,21 @@ Once you have completed the above steps you can complete the file values.yaml to
301301
| ui.serviceType | Yes | ClusterIP/NodePort/LoadBalancer/ExternalName |
302302
| ui.securityContext | No | Fill securityContext field |
303303
| ui.containerSecurityContext | No | Fill securityContext field in the container spec |
304+
| ingress.ui.ingressClassName | Yes | Default is set to nginx |
304305
| ingress.ui.useTls | Yes | true/false |
305306
| ingress.ui.enabled | Yes | true/false |
306307
| ingress.ui.domain | Yes | |
307308
| ingress.ui.path | Yes | ImplementationSpecific/Exact/Prefix |
308309
| ingress.ui.pathType | Yes | |
309310
| ingress.ui.annotations | Yes | Ingress annotations |
311+
| ingress.api.ingressClassName | Yes | Default is set to nginx |
310312
| ingress.api.useTls | Yes | |
311313
| ingress.api.enabled | Yes | |
312314
| ingress.api.domain | Yes | |
313315
| ingress.api.path | Yes | |
314316
| ingress.api.pathType | Yes | ImplementationSpecific/Exact/Prefix |
315317
| ingress.api.annotations | Yes | Ingress annotations |
318+
| ingress.registry.ingressClassName | Yes | Default is set to nginx |
316319
| ingress.registry.useTls | Yes | |
317320
| ingress.registry.enabled | Yes | |
318321
| ingress.registry.domain | Yes | |

charts/terrakube/Chart.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type: application
1515
# This is the chart version. This version number should be incremented each time you make changes
1616
# to the chart and its templates, including the app version.
1717
# Versions are expected to follow Semantic Versioning (https://semver.org/)
18-
version: 3.14.2
18+
version: 3.15.0
1919

2020
# This is the version number of the application being deployed. This version number should be
2121
# incremented each time you make changes to the application. Versions are not expected to

charts/terrakube/templates/ingress-api.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ metadata:
88
{{- toYaml . | nindent 4 }}
99
{{- end }}
1010
spec:
11+
ingressClassName: {{ .Values.ingress.api.ingressClassName | nginx }}
1112
{{ if and .Values.ingress.useTls .Values.ingress.includeTlsHosts }}
1213
tls:
1314
- hosts:

charts/terrakube/templates/ingress-registry.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ metadata:
88
{{- toYaml . | nindent 4 }}
99
{{- end }}
1010
spec:
11+
ingressClassName: {{ .Values.ingress.registry.ingressClassName | nginx }}
1112
{{ if and .Values.ingress.useTls .Values.ingress.includeTlsHosts }}
1213
tls:
1314
- hosts:

charts/terrakube/templates/ingress-ui.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ metadata:
88
{{- toYaml . | nindent 4 }}
99
{{- end }}
1010
spec:
11+
ingressClassName: {{ .Values.ingress.ui.ingressClassName | nginx }}
1112
{{ if and .Values.ingress.useTls .Values.ingress.includeTlsHosts }}
1213
tls:
1314
- hosts:

charts/terrakube/values.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,7 @@ ingress:
248248
domain: "terrakube-ui.minikube.net"
249249
path: "/"
250250
pathType: "Prefix"
251+
ingressClassName: "nginx"
251252
tlsSecretName: tls-secret-ui-terrakube
252253
annotations:
253254
nginx.ingress.kubernetes.io/use-regex: "true"
@@ -256,6 +257,7 @@ ingress:
256257
domain: "terrakube-api.minikube.net"
257258
path: "/"
258259
pathType: "Prefix"
260+
ingressClassName: "nginx"
259261
tlsSecretName: tls-secret-api-terrakube
260262
annotations:
261263
nginx.ingress.kubernetes.io/use-regex: "true"
@@ -265,6 +267,7 @@ ingress:
265267
domain: "terrakube-reg.minikube.net"
266268
path: "/"
267269
pathType: "Prefix"
270+
ingressClassName: "nginx"
268271
tlsSecretName: tls-secret-reg-terrakube
269272
annotations:
270273
nginx.ingress.kubernetes.io/use-regex: "true"

0 commit comments

Comments
 (0)