From 05176e445b90597379c268e799b0fb86b8629b9e Mon Sep 17 00:00:00 2001 From: Kaviraj Kanagaraj Date: Mon, 24 Jun 2024 14:35:53 +0200 Subject: [PATCH] feat(helm): Make gateway container port configurable. (#13294) Signed-off-by: Kaviraj --- docs/sources/setup/install/helm/reference.md | 9 +++++++++ production/helm/loki/Chart.yaml | 2 +- production/helm/loki/README.md | 2 +- .../loki/templates/gateway/deployment-gateway-nginx.yaml | 2 +- production/helm/loki/values.yaml | 2 ++ 5 files changed, 14 insertions(+), 3 deletions(-) diff --git a/docs/sources/setup/install/helm/reference.md b/docs/sources/setup/install/helm/reference.md index 76b4936f20bfd..03f9d17f26984 100644 --- a/docs/sources/setup/install/helm/reference.md +++ b/docs/sources/setup/install/helm/reference.md @@ -3487,6 +3487,15 @@ null
 null
 
+ + + + gateway.containerPort + int + Default container port +
+8080
+
diff --git a/production/helm/loki/Chart.yaml b/production/helm/loki/Chart.yaml index bd2f78049a816..48fd39809afa8 100644 --- a/production/helm/loki/Chart.yaml +++ b/production/helm/loki/Chart.yaml @@ -3,7 +3,7 @@ name: loki description: Helm chart for Grafana Loki and Grafana Enterprise Logs supporting both simple, scalable and distributed modes. type: application appVersion: 3.0.0 -version: 6.6.3 +version: 6.6.4 home: https://grafana.github.io/helm-charts sources: - https://github.com/grafana/loki diff --git a/production/helm/loki/README.md b/production/helm/loki/README.md index a207de47c39a6..bde2719028f14 100644 --- a/production/helm/loki/README.md +++ b/production/helm/loki/README.md @@ -1,6 +1,6 @@ # loki -![Version: 6.6.3](https://img.shields.io/badge/Version-6.6.3-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square) +![Version: 6.6.4](https://img.shields.io/badge/Version-6.6.4-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: 3.0.0](https://img.shields.io/badge/AppVersion-3.0.0-informational?style=flat-square) Helm chart for Grafana Loki and Grafana Enterprise Logs supporting both simple, scalable and distributed modes. diff --git a/production/helm/loki/templates/gateway/deployment-gateway-nginx.yaml b/production/helm/loki/templates/gateway/deployment-gateway-nginx.yaml index f20c49727589b..2b2d4c7bd7bb7 100644 --- a/production/helm/loki/templates/gateway/deployment-gateway-nginx.yaml +++ b/production/helm/loki/templates/gateway/deployment-gateway-nginx.yaml @@ -62,7 +62,7 @@ spec: imagePullPolicy: {{ .Values.gateway.image.pullPolicy }} ports: - name: http-metrics - containerPort: 8080 + containerPort: {{ .Values.gateway.containerPort }} protocol: TCP {{- with .Values.gateway.extraEnv }} env: diff --git a/production/helm/loki/values.yaml b/production/helm/loki/values.yaml index 6485a59e71c0a..359217fc7e219 100644 --- a/production/helm/loki/values.yaml +++ b/production/helm/loki/values.yaml @@ -858,6 +858,8 @@ gateway: enabled: true # -- Number of replicas for the gateway replicas: 1 + # -- Default container port + containerPort: 8080 # -- Enable logging of 2xx and 3xx HTTP requests verboseLogging: true autoscaling: