#support

Adding Annotations to Load Balancer Services with Helm

TLDR Paulo sought to add annotations to load balancer services using Helm's install command. Prashant provided a command and recommended using override-values.yaml for better maintainability. Later, Paulo confirmed the guidance worked.

Powered by Struct AI
raised_hands1
white_check_mark1
5
3w
Solved
Join the chat
Aug 29, 2023 (1 month ago)
Paulo
Photo of md5-a0f48b46df36888f7a94b0c0f1f05cc5
Paulo
12:26 PM
Hello! I have 2 load balancer service (Frontend and otel collector), installed using Helm.
Is possible to add annotations for this 2 load balancer service? Using the helm install command?
    : "Internal"
    : "true"

My install command:
helm install signoz-apm signoz/signoz -n platform --set global.storageClass="premium-rwo" --set global.cloud="gcp" --set frontend.service.type="LoadBalancer" --set clickhouse.persistence.size="120Gi" --set otelCollector.service.type="LoadBalancer" --set clickhouse.installCustomStorageClass="true" --set global.imageRegistry=""
white_check_mark1
Aug 30, 2023 (1 month ago)
Srikanth
Photo of md5-ce04a9988e2fd758a659dc55be6f2543
Srikanth
12:15 PM
Prashant can help with this.
Sep 04, 2023 (3 weeks ago)
Prashant
Photo of md5-1899629483c7ab1dccfbee6cc2f637b9
Prashant
03:27 PM
Paulo It should be possible using the following:

helm install signoz-apm signoz/signoz -n platform --set global.storageClass="premium-rwo" --set global.cloud="gcp" --set frontend.service.type="LoadBalancer" --set clickhouse.persistence.size="120Gi" --set otelCollector.service.type="LoadBalancer" --set clickhouse.installCustomStorageClass="true" --set global.imageRegistry="" --set-json frontend.service.annotations='{"": "Internal","": "true"}' --set-json otelCollector.service.annotations='{"": "Internal","": "true"}'
03:27
Prashant
03:27 PM
Though I would recommend using override-values.yaml for better maintainability.

global:
  storageClass: "premium-rwo"
  cloud: "gcp"
  imageRegistry: ""

frontend:
  service:
    type: "LoadBalancer"
    annotations:
      : "Internal"
      : "true"

otelCollector:
  service:
    type: "LoadBalancer"
    annotations:
      : "Internal"
      : "true"

clickhouse:
  persistence:
    size: "120Gi"
  installCustomStorageClass: true

Paulo
Photo of md5-a0f48b46df36888f7a94b0c0f1f05cc5
Paulo
06:20 PM
Hey Thanks! I will save the command, i made work took with this command:

So maybe in future see this thread:

helm upgrade signoz-apm signoz/signoz -n platform --set global.storageClass="premium-rwo" \
--set global.cloud="gcp" \
--set frontend.service.type="LoadBalancer" \
--set clickhouse.persistence.size="120Gi" \
--set otelCollector.service.type="LoadBalancer" \
--set clickhouse.installCustomStorageClass="true" \
--set global.imageRegistry="" \
--set frontend.service.annotations."networking\.gke\.io/load-balancer-type"="Internal"  \
--set-string frontend.service.annotations."networking\.gke\.io/internal-load-balancer-allow-global-access"="true" \
--set otelCollector.service.annotations."networking\.gke\.io/load-balancer-type"="Internal"  \
--set-string otelCollector.service.annotations."networking\.gke\.io/internal-load-balancer-allow-global-access"="true"
raised_hands1