diff --git a/charts/kubetail/Chart.yaml b/charts/kubetail/Chart.yaml index efd2000..9fc588d 100644 --- a/charts/kubetail/Chart.yaml +++ b/charts/kubetail/Chart.yaml @@ -8,7 +8,7 @@ keywords: - private - realtime type: application -version: 0.1.9 +version: 0.2.0 appVersion: "0.1.3" home: https://github.com/kubetail-org/kubetail maintainers: diff --git a/charts/kubetail/README.md b/charts/kubetail/README.md index 05d4729..bd57eac 100644 --- a/charts/kubetail/README.md +++ b/charts/kubetail/README.md @@ -77,4 +77,10 @@ These are the configurable parameters for the kubetail chart and their default v | service.type | string | Service type | ClusterIP | | service.port | int | Service port | 4000 | | serviceAccount.name | string | Override ServiceAccount name from release | | +| ingress.enabled | bool | Enable ingress resource | false | +| ingress.name | string | Override ingress name | | +| ingress.annotations | map | Annotations to apply to ingress resource | {} | +| ingress.hosts | array | Hosts array for ingress resource | | +| ingress.tls | array | TLS array for ingress resource | | +| ingress.secretName | string | Override ingress secretName | | | config | map | Kubetail app config | *See values.yaml* | diff --git a/charts/kubetail/templates/ingress.yaml b/charts/kubetail/templates/ingress.yaml new file mode 100644 index 0000000..e0edca0 --- /dev/null +++ b/charts/kubetail/templates/ingress.yaml @@ -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 }} diff --git a/charts/kubetail/values.yaml b/charts/kubetail/values.yaml index b90701d..94001f3 100644 --- a/charts/kubetail/values.yaml +++ b/charts/kubetail/values.yaml @@ -88,6 +88,11 @@ service: serviceAccount: name: +# ingress options +ingress: + enabled: false + annotations: {} + # kubetail config (see https://github.com/kubetail-org/kubetail for defaults) config: csrf: