Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[influxdbv2] deploy influx with gateway-api #632

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion charts/influxdb2/Chart.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ name: influxdb2
description: A Helm chart for InfluxDB v2
home: https://www.influxdata.com/products/influxdb/
type: application
version: 2.1.2
version: 2.1.3
maintainers:
- name: rawkode
email: [email protected]
Expand Down
1 change: 1 addition & 0 deletions charts/influxdb2/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ bootstrap an InfluxDB v2 StatefulSet and service on a
- Helm v3 or later
- Kubernetes 1.4+
- (Optional) PersistentVolume (PV) provisioner support in the underlying infrastructure
- (Optional) Gateway API with istio service mesh

## Install the chart

Expand Down
26 changes: 26 additions & 0 deletions charts/influxdb2/templates/http-route.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{{- if .Values.gateway.enabled }}
{{- $gateway:= .Values.gateway }}
---
apiVersion: gateway.networking.k8s.io/v1beta1
kind: HTTPRoute
metadata:
name: {{ include "influxdb.fullname" . }}
labels:
{{- include "influxdb.labels" . | nindent 4 }}
annotations:
{{ toYaml .Values.gateway.annotations | indent 4 }}
namespace: {{ .Values.namespace }}
spec:
parentRefs:
- name: {{ $gateway.name | default "gateway-ingress" }}
namespace: {{ $gateway.namespace | default "istio-system" }}
sectionName: {{ $gateway.sectionName | default "https" }}
hostnames:
- "{{ $gateway.url }}"
rules:
- backendRefs:
- name: {{ .Values.name }}
namespace: {{ .Values.namespace }}
port: {{ .Values.service.port }}
weight: {{ $gateway.weight | default 100 }}
{{- end }}
5 changes: 5 additions & 0 deletions charts/influxdb2/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ ingress:
# kubernetes.io/tls-acme: "true"
path: /

gateway:
enabled: false
url: influxdb.foobar.com
annotations: {}

## Pod disruption budget configuration
##
pdb:
Expand Down