-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Adds Ingress support to kubetail chart
* Adds optional ingress resource when `ingress.enabled=true` * Accepts ingress configuration options
- Loading branch information
1 parent
248c430
commit 7f3ca5e
Showing
4 changed files
with
49 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
{{- $ing := index .Values "ingress" -}} | ||
{{- if $ing.enabled }} | ||
apiVersion: networking.k8s.io/v1 | ||
kind: Ingress | ||
metadata: | ||
name: {{ if .Values.ingress.name }}{{ .Values.ingress.name }}{{ else }}{{ include "kubetail.fullname" . }}{{ end }} | ||
annotations: | ||
{{- with .Values.ingress.annotations }} | ||
{{ toYaml . | indent 4 }} | ||
{{- end }} | ||
spec: | ||
rules: | ||
{{- range .Values.ingress.hosts }} | ||
- host: {{ .host }} | ||
http: | ||
paths: | ||
{{- range .paths }} | ||
- path: {{ .path }} | ||
pathType: {{ .pathType }} | ||
backend: | ||
service: | ||
name: {{ if .Values.service.name }}{{ .Values.service.name }}{{ else }}{{ include "kubetail.fullname" . }}{{ end }} | ||
port: | ||
number: {{ .Values.service.port }} | ||
{{- end }} | ||
{{- end }} | ||
{{- with .Values.ingress.tls }} | ||
tls: | ||
{{- range . }} | ||
- hosts: | ||
{{- range .hosts }} | ||
- {{ . }} | ||
{{- end }} | ||
secretName: {{ if .Values.ingress.secretName }}{{ .Values.ingress.secretName }}{{ else }}{{ include "kubetail.fullname" . }}{{ end }} | ||
{{- end }} | ||
{{- end }} | ||
{{- end }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters