From 41628804823f31efc09c31f662c099c24f566a16 Mon Sep 17 00:00:00 2001 From: Michal Kuratczyk Date: Wed, 8 Mar 2023 17:36:01 +0100 Subject: [PATCH] Add server.service.loadBalancerIP (#49) --- charts/parca/Chart.yaml | 2 +- charts/parca/README.md | 3 ++- charts/parca/templates/server-service.yaml | 6 ++++++ charts/parca/values.yaml | 2 ++ 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/charts/parca/Chart.yaml b/charts/parca/Chart.yaml index 57822fe03..948541ab5 100644 --- a/charts/parca/Chart.yaml +++ b/charts/parca/Chart.yaml @@ -21,7 +21,7 @@ type: application # to the chart and its templates, including the app version. # Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 4.6.0 +version: 4.7.0 # This is the version number of the application being deployed. This version number should be # incremented each time you make changes to the application. Versions are not expected to diff --git a/charts/parca/README.md b/charts/parca/README.md index 833d704a4..bedf70328 100644 --- a/charts/parca/README.md +++ b/charts/parca/README.md @@ -1,6 +1,6 @@ # parca -![Version: 4.6.0](https://img.shields.io/badge/Version-4.6.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.16.2](https://img.shields.io/badge/AppVersion-v0.16.2-informational?style=flat-square) +![Version: 4.7.0](https://img.shields.io/badge/Version-4.7.0-informational?style=flat-square) ![Type: application](https://img.shields.io/badge/Type-application-informational?style=flat-square) ![AppVersion: v0.16.2](https://img.shields.io/badge/AppVersion-v0.16.2-informational?style=flat-square) Open Source Infrastructure-wide continuous profiling @@ -117,6 +117,7 @@ helm repo add parca https://parca-dev.github.io/helm-charts | server.scrapeConfigs | list | `[{"job_name":"kubernetes-pods","kubernetes_sd_configs":[{"role":"pod"}],"relabel_configs":[{"action":"keep","regex":true,"source_labels":["__meta_kubernetes_pod_annotation_parca_dev_scrape"]},{"action":"replace","regex":"(.+)","source_labels":["__meta_kubernetes_pod_annotation_parca_dev_path"],"target_label":"__metrics_path__"},{"action":"replace","regex":"([^:]+)(?::\\d+)?;(\\d+)","replacement":"$1:$2","source_labels":["__address__","__meta_kubernetes_pod_annotation_parca_dev_port"],"target_label":"__address__"},{"action":"labelmap","regex":"__meta_kubernetes_pod_label_(.+)"},{"action":"replace","source_labels":["__meta_kubernetes_namespace"],"target_label":"kubernetes_namespace"},{"action":"replace","source_labels":["__meta_kubernetes_pod_name"],"target_label":"kubernetes_pod_name"}],"scrape_interval":"1m"}]` | scrape configs for parca server | | server.securityContext | object | `{}` | additional security context for server | | server.service.annotations | object | `{}` | annotations to be added for the server service | +| server.service.loadBalancerIP | string | `nil` | load balancer static IP | | server.service.port | int | `7070` | service port for server | | server.service.type | string | `"ClusterIP"` | service type for server | | server.serviceMonitor.enabled | bool | `false` | enables servicemonitor for server monitoring | diff --git a/charts/parca/templates/server-service.yaml b/charts/parca/templates/server-service.yaml index 2d3e889db..4ae8f1be5 100644 --- a/charts/parca/templates/server-service.yaml +++ b/charts/parca/templates/server-service.yaml @@ -11,6 +11,12 @@ metadata: {{- end }} spec: type: {{ .Values.server.service.type }} + {{- with .Values.server.service.loadBalancerIP }} + loadBalancerIP: {{ . }} + {{- end }} + {{- with .Values.server.service.loadBalancerIP }} + loadBalancerIP: {{ . }} + {{- end }} ports: - port: {{ .Values.server.service.port }} targetPort: 7070 diff --git a/charts/parca/values.yaml b/charts/parca/values.yaml index f602ebb62..380c37423 100644 --- a/charts/parca/values.yaml +++ b/charts/parca/values.yaml @@ -138,6 +138,8 @@ server: service: # -- service type for server type: ClusterIP + # -- load balancer static IP + loadBalancerIP: # -- service port for server port: 7070 # -- annotations to be added for the server service