Skip to content

Commit

Permalink
fixing helm chart for load balancer
Browse files Browse the repository at this point in the history
  • Loading branch information
arroyoAle committed Aug 13, 2024
1 parent 43d48c7 commit 85fc2dc
Showing 1 changed file with 18 additions and 20 deletions.
38 changes: 18 additions & 20 deletions _infra/helm/collection-instrument/templates/loadbalancer.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 85fc2dc

Please sign in to comment.