From 33530c540c01003be6c520b617cbee58dba1fbff Mon Sep 17 00:00:00 2001 From: HwangboGyumin Date: Fri, 17 Nov 2023 03:27:27 +0900 Subject: [PATCH] [fix] service nodePort set --- k8s/onlychat/service/api-server-service.yaml | 2 +- .../service/customer-server-service.yaml | 16 ++++++++++++++++ .../service/discovery-server-service.yaml | 2 ++ 3 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 k8s/onlychat/service/customer-server-service.yaml diff --git a/k8s/onlychat/service/api-server-service.yaml b/k8s/onlychat/service/api-server-service.yaml index d6ea2d68..40d06312 100644 --- a/k8s/onlychat/service/api-server-service.yaml +++ b/k8s/onlychat/service/api-server-service.yaml @@ -11,7 +11,7 @@ spec: protocol: TCP port: 8000 targetPort: 8000 - nodePort: 30010 + nodePort: 30012 type: NodePort selector: app: api-server-service diff --git a/k8s/onlychat/service/customer-server-service.yaml b/k8s/onlychat/service/customer-server-service.yaml new file mode 100644 index 00000000..35238303 --- /dev/null +++ b/k8s/onlychat/service/customer-server-service.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + labels: + app: customer-server-service + name: customer-server-service +spec: + ports: + - port: 8020 + targetPort: 8020 + nodePort: 30013 + type: NodePort + selector: + app: customer-server-service +status: + loadBalancer: {} diff --git a/k8s/onlychat/service/discovery-server-service.yaml b/k8s/onlychat/service/discovery-server-service.yaml index 8d241435..8b612f07 100644 --- a/k8s/onlychat/service/discovery-server-service.yaml +++ b/k8s/onlychat/service/discovery-server-service.yaml @@ -8,5 +8,7 @@ spec: ports: - port: 8761 targetPort: 8761 + nodePort: 30014 + type: NodePort selector: app: discovery-server-service