Hello! I have 2 load balancer service (Frontend an...
# support
p
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?
Copy code
<http://networking.gke.io/load-balancer-type|networking.gke.io/load-balancer-type>: "Internal"
    <http://networking.gke.io/internal-load-balancer-allow-global-access|networking.gke.io/internal-load-balancer-allow-global-access>: "true"
My install command:
Copy code
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="<http://ourregistry.example.com|ourregistry.example.com>"
s
@Prashant Shahi can help with this.
p
@Paulo Henrique de Morais Santiago It should be possible using the following:
Copy code
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="<http://ourregistry.example.com|ourregistry.example.com>" --set-json frontend.service.annotations='{"<http://networking.gke.io/load-balancer-type|networking.gke.io/load-balancer-type>": "Internal","<http://networking.gke.io/internal-load-balancer-allow-global-access|networking.gke.io/internal-load-balancer-allow-global-access>": "true"}' --set-json otelCollector.service.annotations='{"<http://networking.gke.io/load-balancer-type|networking.gke.io/load-balancer-type>": "Internal","<http://networking.gke.io/internal-load-balancer-allow-global-access|networking.gke.io/internal-load-balancer-allow-global-access>": "true"}'
Though I would recommend using
override-values.yaml
for better maintainability.
Copy code
global:
  storageClass: "premium-rwo"
  cloud: "gcp"
  imageRegistry: "<http://ourregistry.example.com|ourregistry.example.com>"

frontend:
  service:
    type: "LoadBalancer"
    annotations:
      <http://networking.gke.io/load-balancer-type|networking.gke.io/load-balancer-type>: "Internal"
      <http://networking.gke.io/internal-load-balancer-allow-global-access|networking.gke.io/internal-load-balancer-allow-global-access>: "true"

otelCollector:
  service:
    type: "LoadBalancer"
    annotations:
      <http://networking.gke.io/load-balancer-type|networking.gke.io/load-balancer-type>: "Internal"
      <http://networking.gke.io/internal-load-balancer-allow-global-access|networking.gke.io/internal-load-balancer-allow-global-access>: "true"

clickhouse:
  persistence:
    size: "120Gi"
  installCustomStorageClass: true
p
Hey Thanks! I will save the command, i made work took with this command: So maybe in future see this thread:
Copy code
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="<http://ourregistry.example.com|ourregistry.example.com>" \
--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"