From 2afacd7e67b4ea99088e788bc7e764548eb41e1e Mon Sep 17 00:00:00 2001 From: nirvitr Date: Thu, 28 Nov 2024 11:51:14 +0530 Subject: [PATCH 1/6] Create deployment.yaml --- deployment.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 deployment.yaml diff --git a/deployment.yaml b/deployment.yaml new file mode 100644 index 00000000..011c6037 --- /dev/null +++ b/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 2babbf82f5d91d12669dfddfd70293cf26f1aae5 Mon Sep 17 00:00:00 2001 From: nirvitr Date: Thu, 28 Nov 2024 11:51:41 +0530 Subject: [PATCH 2/6] Create service.yaml --- service.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 service.yaml diff --git a/service.yaml b/service.yaml new file mode 100644 index 00000000..de6bee0d --- /dev/null +++ b/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 e0dc6a026bd707aaf679534ab0a31354d385e19b Mon Sep 17 00:00:00 2001 From: nirvitr Date: Thu, 28 Nov 2024 11:55:18 +0530 Subject: [PATCH 3/6] Create service.yaml --- nirvit/service.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 nirvit/service.yaml diff --git a/nirvit/service.yaml b/nirvit/service.yaml new file mode 100644 index 00000000..de6bee0d --- /dev/null +++ b/nirvit/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 107363a826723e4200068a62b7b8f890166b07d2 Mon Sep 17 00:00:00 2001 From: nirvitr Date: Thu, 28 Nov 2024 11:55:40 +0530 Subject: [PATCH 4/6] Create deployment --- nirvit/deployment | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 nirvit/deployment diff --git a/nirvit/deployment b/nirvit/deployment new file mode 100644 index 00000000..011c6037 --- /dev/null +++ b/nirvit/deployment @@ -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 185807e7a963389136fa8ad8fc1d2d3f449f71ab Mon Sep 17 00:00:00 2001 From: nirvitr Date: Thu, 28 Nov 2024 12:24:08 +0530 Subject: [PATCH 5/6] Update deployment --- nirvit/deployment | 1 + 1 file changed, 1 insertion(+) diff --git a/nirvit/deployment b/nirvit/deployment index 011c6037..c93c196e 100644 --- a/nirvit/deployment +++ b/nirvit/deployment @@ -24,3 +24,4 @@ spec: name: vote resources: {} status: {} +1234 From c084d2c33bd5cc151a8c57a178b14f252330264e Mon Sep 17 00:00:00 2001 From: nirvitr Date: Thu, 28 Nov 2024 12:56:10 +0530 Subject: [PATCH 6/6] Update service.yaml --- nirvit/service.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/nirvit/service.yaml b/nirvit/service.yaml index de6bee0d..591ed78b 100644 --- a/nirvit/service.yaml +++ b/nirvit/service.yaml @@ -18,3 +18,4 @@ spec: type: NodePort status: loadBalancer: {} +1234