Skip to content

Commit 0919b50

Browse files
committed
syz-cluster: set proper Service types
As the cluster is private, use the ClusterIP type to only request a cluster-internal IP. Since web dashboard will need to be exposed via Load Balancer, set the necessary metadata annotation.
1 parent 48c4cfe commit 0919b50

File tree

4 files changed

+11
-1
lines changed

4 files changed

+11
-1
lines changed

syz-cluster/controller/service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ spec:
1212
- protocol: TCP
1313
port: 8080
1414
targetPort: 8080
15+
type: ClusterIP

syz-cluster/dashboard/service.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ spec:
1212
- protocol: TCP
1313
port: 80
1414
targetPort: 8081
15-
type: LoadBalancer
15+
type: ClusterIP

syz-cluster/overlays/gke/kustomization.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,11 @@ patches:
3131
path: /spec/templates/0/nodeSelector
3232
value:
3333
cloud.google.com/gke-nodepool: nested-vm-pool
34+
- target:
35+
kind: Service
36+
name: web-dashboard-service
37+
patch: |-
38+
- op: replace
39+
path: /metadata/annotations
40+
value:
41+
cloud.google.com/neg: '{"exposed_ports": {"80":{"name": "web-dashboard"}}}'

syz-cluster/reporter-server/service.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ spec:
1212
- protocol: TCP
1313
port: 8080
1414
targetPort: 8080
15+
type: ClusterIP

0 commit comments

Comments
 (0)