Unverified Commit 34c2b652 authored by Jorik Jonker's avatar Jorik Jonker Committed by GitHub

influxdb: support v1 ingress (#352)

Chart was lacking v1 ingress support, which makes it impossible to deploy on Kubernetes 1.22. Signed-off-by: 's avatarJorik Jonker <jorik.jonker@eu.equinix.com>
parent 2f3e8859
apiVersion: v1
name: influxdb
version: 4.10.0
version: 4.10.1
appVersion: 1.8.6
description: Scalable datastore for metrics, events, and real-time analytics.
keywords:
......
{{- if .Values.ingress.enabled -}}
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
apiVersion: networking.k8s.io/v1
{{- else }}
apiVersion: networking.k8s.io/v1beta1
{{- end }}
kind: Ingress
metadata:
name: {{ include "influxdb.fullname" . }}
......@@ -22,7 +26,17 @@ spec:
http:
paths:
- path: {{ .Values.ingress.path }}
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
pathType: Prefix
{{- end }}
backend:
{{- if .Capabilities.APIVersions.Has "networking.k8s.io/v1" }}
service:
name: {{ include "influxdb.fullname" . }}
port:
number: 8086
{{- else }}
serviceName: {{ include "influxdb.fullname" . }}
servicePort: 8086
{{- end }}
{{- end -}}
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