From 1577f8b57e5f66b1e989e1d4f256bf32eb2b0d62 Mon Sep 17 00:00:00 2001 From: Nicolas BOURON Date: Tue, 9 May 2023 15:24:50 +0200 Subject: [PATCH] feat(graphite): add loadBalancerIP attribute Signed-off-by: Nicolas BOURON --- charts/graphite/Chart.yaml | 2 +- charts/graphite/README.md | 3 ++- charts/graphite/templates/service.yaml | 3 +++ charts/graphite/values.yaml | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) diff --git a/charts/graphite/Chart.yaml b/charts/graphite/Chart.yaml index efbd7044..123bce8c 100644 --- a/charts/graphite/Chart.yaml +++ b/charts/graphite/Chart.yaml @@ -1,5 +1,5 @@ apiVersion: v1 -version: 1.1.0 +version: 1.2.0 appVersion: "1.1.10-3" description: Graphite metrics server name: graphite diff --git a/charts/graphite/README.md b/charts/graphite/README.md index d79ea674..2b62fd63 100644 --- a/charts/graphite/README.md +++ b/charts/graphite/README.md @@ -37,9 +37,10 @@ The following table lists the configurable parameters of the Graphite chart and | Parameter | Description | Default | |--------------------------------|----------------------------------------------|----------------------------------------| | `image.repository` | Docker image repo | `graphiteapp/graphite-statsd` | -| `image.tag` | Docker image | `1.1.5-4` | +| `image.tag` | Docker image | `1.1.5-4` | | `image.pullPolicy` | Docker image pull policy | `IfNotPresent` | | `service.type` | Service type | `ClusterIP` | +| `service.loadBalancerIP` | Service loadBalancerIP | `nil` | | `service.port` | Service port of Graphite UI | `8080` | | `service.annotations` | Service annotations | `{}` | | `service.labels` | Service labels | `{}` | diff --git a/charts/graphite/templates/service.yaml b/charts/graphite/templates/service.yaml index abbdd519..7dae4be2 100644 --- a/charts/graphite/templates/service.yaml +++ b/charts/graphite/templates/service.yaml @@ -16,6 +16,9 @@ metadata: {{- end }} spec: type: {{ .Values.service.type }} +{{- if and (eq .Values.service.type "LoadBalancer") (.Values.service.loadBalancerIP) }} + loadBalancerIP: {{ .Values.service.loadBalancerIP }} +{{- end }} ports: - name: graphite-pickle port: 2004 diff --git a/charts/graphite/values.yaml b/charts/graphite/values.yaml index 667e71d1..a8b87e19 100644 --- a/charts/graphite/values.yaml +++ b/charts/graphite/values.yaml @@ -7,6 +7,8 @@ image: service: type: ClusterIP + # In case of service type LoadBalancer, you can specify reserved static IP + # loadBalancerIP: 10.11.12.13 port: 8080 annotations: {} labels: {}