From 3c1b887fc8e0ea8ce946b23b2968e9da4cf01941 Mon Sep 17 00:00:00 2001 From: Edward Cheng Date: Mon, 26 Aug 2024 16:19:47 +1000 Subject: [PATCH] update services from NodePort to LoadBalancer --- apps/coder/env/k3s-cluster/values.yaml | 4 ++-- apps/nexus/base/service.yaml | 5 ++--- infrastructures/prometheus/env/k3s-cluster/service.yaml | 4 +--- 3 files changed, 5 insertions(+), 8 deletions(-) diff --git a/apps/coder/env/k3s-cluster/values.yaml b/apps/coder/env/k3s-cluster/values.yaml index 8b520a8..207d90b 100644 --- a/apps/coder/env/k3s-cluster/values.yaml +++ b/apps/coder/env/k3s-cluster/values.yaml @@ -18,5 +18,5 @@ coder: - name: coder-data mountPath: /config service: - type: NodePort - httpNodePort: 31180 \ No newline at end of file + type: LoadBalancer + httpNodePort: 8180 \ No newline at end of file diff --git a/apps/nexus/base/service.yaml b/apps/nexus/base/service.yaml index 6bf9f28..cbd982c 100644 --- a/apps/nexus/base/service.yaml +++ b/apps/nexus/base/service.yaml @@ -10,8 +10,7 @@ metadata: spec: selector: app: nexus - type: NodePort + type: LoadBalancer ports: - port: 8081 - targetPort: 8081 - nodePort: 32000 \ No newline at end of file + targetPort: 8081 \ No newline at end of file diff --git a/infrastructures/prometheus/env/k3s-cluster/service.yaml b/infrastructures/prometheus/env/k3s-cluster/service.yaml index 04105b9..afdf824 100644 --- a/infrastructures/prometheus/env/k3s-cluster/service.yaml +++ b/infrastructures/prometheus/env/k3s-cluster/service.yaml @@ -9,14 +9,12 @@ metadata: spec: selector: app: prometheus - type: NodePort + type: LoadBalancer ports: - port: 9999 targetPort: 9090 - nodePort: 30999 protocol: TCP name: http - name: grafana-port port: 3030 - nodePort: 30303 targetPort: 3000 \ No newline at end of file