Skip to content

Commit

Permalink
Enable Ingress with ingressClassName
Browse files Browse the repository at this point in the history
  • Loading branch information
amnk committed Apr 22, 2022
1 parent 561ae80 commit 714438c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion charts/helm-microservice/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ apiVersion: v1
appVersion: "1.0"
description: A Helm chart for Kubernetes
name: helm-microservice
version: 0.1.22
version: 0.1.23
home: https://github.com/skaeladmin/infra
sources:
- https://github.com/skaeladmin/infra/charts/helm-microservice
Expand Down
3 changes: 3 additions & 0 deletions charts/helm-microservice/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ metadata:
{{- end }}
{{- end }}
spec:
{{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }}
{{- end }}
{{ $subDomain := .Values.ingress.subDomain | default "" }}
rules:
{{ $path := .Values.ingress.path }}
Expand Down
4 changes: 4 additions & 0 deletions charts/helm-microservice/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ ingress:
enabled: false
## This one can be used to insert one templated annotation. Ugly, but I could not find a better way of doing it :(
hackAnnotations: false
className: null

livenessProbe:
enabled: true
Expand Down Expand Up @@ -259,3 +260,6 @@ serviceMonitor:
# targetLabel: nodename
# replacement: $1
# action: replace
#


0 comments on commit 714438c

Please sign in to comment.