Unverified Commit d252c388 authored by tomklapka's avatar tomklapka Committed by GitHub

fix: influxdb1 ingress resource (#570)

* fix: influxdb1 ingress resource * fix: bump chart version
parent 5151027d
apiVersion: v1 apiVersion: v1
name: influxdb name: influxdb
version: 4.12.2 version: 4.12.3
appVersion: 1.8.10 appVersion: 1.8.10
description: Scalable datastore for metrics, events, and real-time analytics. description: Scalable datastore for metrics, events, and real-time analytics.
keywords: keywords:
......
...@@ -4,28 +4,26 @@ kind: Ingress ...@@ -4,28 +4,26 @@ kind: Ingress
metadata: metadata:
name: {{ include "influxdb.fullname" . }} name: {{ include "influxdb.fullname" . }}
labels: labels:
{{- include "influxdb.labels" . | nindent 4 }} {{- include "influxdb.labels" . | nindent 4 }}
{{- if .Values.ingress.annotations }} {{- if .Values.ingress.annotations }}
annotations: annotations:
{{ toYaml .Values.ingress.annotations | indent 4 }} {{ toYaml .Values.ingress.annotations | indent 4 }}
{{- end }} {{- end }}
spec: spec:
{{- if .Values.ingress.tls }} {{- if .Values.ingress.tls }}
tls: tls:
- hosts: - hosts:
- {{ .Values.ingress.hostname | quote }} - {{ .Values.ingress.hostname | quote }}
{{- if .Values.ingress.secretName }}
secretName: {{ .Values.ingress.secretName }} secretName: {{ .Values.ingress.secretName }}
{{- end }} {{- end }}
{{- end }}
{{- if .Values.ingress.className }} {{- if .Values.ingress.className }}
ingressClassName: {{ .Values.ingress.className }} ingressClassName: {{ .Values.ingress.className }}
{{- end }} {{- end }}
rules: rules:
{{- if .Values.ingress.hostname }} - host: {{ .Values.ingress.hostname | quote }}
- host: {{ .Values.ingress.hostname }}
http: http:
{{- else }}
- http:
{{- end }}
paths: paths:
- path: {{ .Values.ingress.path }} - path: {{ .Values.ingress.path }}
pathType: Prefix pathType: Prefix
...@@ -34,4 +32,4 @@ spec: ...@@ -34,4 +32,4 @@ spec:
name: {{ include "influxdb.fullname" . }} name: {{ include "influxdb.fullname" . }}
port: port:
number: {{ include "influxdb.httpPortNumber" . }} number: {{ include "influxdb.httpPortNumber" . }}
{{- end }} {{- end }}
...@@ -140,7 +140,7 @@ ingress: ...@@ -140,7 +140,7 @@ ingress:
enabled: false enabled: false
tls: false tls: false
# secretName: my-tls-cert # only needed if tls above is true # secretName: my-tls-cert # only needed if tls above is true
hostname: "" hostname: "*"
className: nginx className: nginx
annotations: {} annotations: {}
# nginx.ingress.kubernetes.io/rewrite-target: $1 # nginx.ingress.kubernetes.io/rewrite-target: $1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment