From c60eb5b0d17f1f525cdc3a4661af300ce662357c Mon Sep 17 00:00:00 2001 From: sikri118 Date: Thu, 28 Nov 2024 11:54:47 +0530 Subject: [PATCH 1/5] Create deployment.yaml --- Deploy/deployment.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Deploy/deployment.yaml diff --git a/Deploy/deployment.yaml b/Deploy/deployment.yaml new file mode 100644 index 00000000..011c6037 --- /dev/null +++ b/Deploy/deployment.yaml @@ -0,0 +1,26 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + creationTimestamp: null + labels: + app: vote + tier: front + name: vote +spec: + replicas: 2 + selector: + matchLabels: + app: vote + strategy: {} + template: + metadata: + creationTimestamp: null + labels: + app: vote + tier: front + spec: + containers: + - image: schoolofdevops/vote:v1 + name: vote + resources: {} +status: {} From 1b73ea2400071e2f32892749691bd17f6604158f Mon Sep 17 00:00:00 2001 From: sikri118 Date: Thu, 28 Nov 2024 11:55:48 +0530 Subject: [PATCH 2/5] Create service.yaml --- Deploy/service.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 Deploy/service.yaml diff --git a/Deploy/service.yaml b/Deploy/service.yaml new file mode 100644 index 00000000..de6bee0d --- /dev/null +++ b/Deploy/service.yaml @@ -0,0 +1,20 @@ +apiVersion: v1 +kind: Service +metadata: + creationTimestamp: null + labels: + app: vote + tier: front + name: vote +spec: + ports: + - name: "80" + nodePort: 30000 + port: 80 + protocol: TCP + targetPort: 80 + selector: + app: vote + type: NodePort +status: + loadBalancer: {} From f38683b2388216256baa5699fdf6f6829bcd0a83 Mon Sep 17 00:00:00 2001 From: sikri118 Date: Thu, 28 Nov 2024 13:00:34 +0530 Subject: [PATCH 3/5] Update service.yaml --- Deploy/service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Deploy/service.yaml b/Deploy/service.yaml index de6bee0d..c82cc155 100644 --- a/Deploy/service.yaml +++ b/Deploy/service.yaml @@ -4,7 +4,7 @@ metadata: creationTimestamp: null labels: app: vote - tier: front + tier: front11 name: vote spec: ports: From e358889277beb9949f201c550baaab8ebef4b89f Mon Sep 17 00:00:00 2001 From: sikri118 Date: Thu, 28 Nov 2024 13:13:23 +0530 Subject: [PATCH 4/5] Update service.yaml --- Deploy/service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Deploy/service.yaml b/Deploy/service.yaml index c82cc155..ba5c6c83 100644 --- a/Deploy/service.yaml +++ b/Deploy/service.yaml @@ -4,7 +4,7 @@ metadata: creationTimestamp: null labels: app: vote - tier: front11 + tier: front11111 name: vote spec: ports: From b73d8a706c66e806548cd304e304110be831be58 Mon Sep 17 00:00:00 2001 From: sikri118 Date: Thu, 28 Nov 2024 13:18:02 +0530 Subject: [PATCH 5/5] Update service new.yaml --- Deploy/service.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Deploy/service.yaml b/Deploy/service.yaml index ba5c6c83..ac65edc4 100644 --- a/Deploy/service.yaml +++ b/Deploy/service.yaml @@ -4,7 +4,7 @@ metadata: creationTimestamp: null labels: app: vote - tier: front11111 + tier: front1111113123123 name: vote spec: ports: