Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Commit

Permalink
Update ingress template (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
phillebaba authored Apr 12, 2021
1 parent b1e3076 commit 533479d
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 23 deletions.
4 changes: 2 additions & 2 deletions charts/ingress-healthz/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ 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: 1.0.6
version: 1.1.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
# follow Semantic Versioning. They should reflect the version the application is using.
appVersion: 1.0.6
appVersion: 1.1.0
16 changes: 2 additions & 14 deletions charts/ingress-healthz/templates/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,36 +15,24 @@ spec:
{{- if .Values.ingress.tls }}
tls:
{{- range .Values.ingress.tls }}
{{- if .host }}
- hosts:
{{- range .hosts }}
- {{ . | quote }}
{{- end }}
{{- else }}
- {}
{{- end }}
{{- if .secretName }}
secretName: {{ .secretName }}
{{- end }}
{{- end }}
{{- end }}
rules:
{{- range .Values.ingress.hosts }}
{{- if .host }}
- host: {{ .host | quote }}
http:
{{- else }}
- http:
{{- end }}
paths:
{{- range .paths }}
- path: {{ . }}
pathType: Prefix
- pathType: Prefix
path: /cluster-health/healthz
backend:
service:
name: {{ $fullName }}
port:
name: http
{{- end }}
{{- end }}
{{- end }}
15 changes: 8 additions & 7 deletions charts/ingress-healthz/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -38,14 +38,15 @@ service:

ingress:
enabled: true
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /healthz
kubernetes.io/ingress.class: nginx
annotations: {}
# kubernetes.io/ingress.class: nginx
# kubernetes.io/tls-acme: "true"
hosts:
- paths:
- /cluster-health/healthz
tls:
- {}
- host: chart-example.local
tls: []
# - secretName: chart-example-tls
# hosts:
# - chart-example.local

resources:
# We usually recommend not to specify default resources and to leave this as a conscious
Expand Down

0 comments on commit 533479d

Please sign in to comment.