From 85fc2dcbdb30b2448df9485091f35de1d524a08e Mon Sep 17 00:00:00 2001 From: Alejandro Arroyo Date: Tue, 13 Aug 2024 14:46:02 +0100 Subject: [PATCH] fixing helm chart for load balancer --- .../templates/loadbalancer.yml | 38 +++++++++---------- 1 file changed, 18 insertions(+), 20 deletions(-) diff --git a/_infra/helm/collection-instrument/templates/loadbalancer.yml b/_infra/helm/collection-instrument/templates/loadbalancer.yml index b82bb26c..f6fa6e71 100644 --- a/_infra/helm/collection-instrument/templates/loadbalancer.yml +++ b/_infra/helm/collection-instrument/templates/loadbalancer.yml @@ -1,22 +1,20 @@ {{ if .Values.loadBalancer.enabled }} - - apiVersion: v1 - kind: Service - metadata: - name: collection-instrument-lb - annotations: - networking.gke.io/load-balancer-type: "Internal" - networking.gke.io/load-balancer-ip-addresses: {{ .Values.loadBalancer.ipAddress }} - spec: - type: LoadBalancer - externalTrafficPolicy: Cluster - loadBalancerIP: {{ .Values.loadBalancer.ipAddress }} - selector: - app: collection-instrument - ports: - - name: tcp-port - protocol: TCP - port: 80 - targetPort: 8080 - +apiVersion: v1 +kind: Service +metadata: + name: collection-instrument-lb + annotations: + networking.gke.io/load-balancer-type: "Internal" + networking.gke.io/load-balancer-ip-addresses: {{ .Values.loadBalancer.ipAddress }} +spec: + type: LoadBalancer + externalTrafficPolicy: Cluster + loadBalancerIP: {{ .Values.loadBalancer.ipAddress }} + selector: + app: collection-instrument + ports: + - name: tcp-port + protocol: TCP + port: 80 + targetPort: 8080 {{ end }} \ No newline at end of file