From 489a04c957c4c7302214e0aa16c86bbfcb2ea36c Mon Sep 17 00:00:00 2001 From: Man Sinh Lee Date: Tue, 27 Jun 2023 07:40:51 +0700 Subject: [PATCH] Modify replicas and service type to NodePort --- deployment.yaml | 2 +- service.yaml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/deployment.yaml b/deployment.yaml index 5fc3833..ed2398a 100644 --- a/deployment.yaml +++ b/deployment.yaml @@ -3,7 +3,7 @@ kind: Deployment metadata: name: sample-app spec: - replicas: 1 + replicas: 3 revisionHistoryLimit: 3 selector: matchLabels: diff --git a/service.yaml b/service.yaml index 830af2e..b3319e1 100644 --- a/service.yaml +++ b/service.yaml @@ -6,5 +6,6 @@ spec: ports: - port: 80 targetPort: 8080 + nodePort: 30080 selector: app: sample-app