From af97495772d15c52fb0303fa5123511724360232 Mon Sep 17 00:00:00 2001 From: vinod Date: Fri, 16 Jun 2023 16:12:04 +0530 Subject: [PATCH 1/2] added deploy code for vote and redis --- deploy/redis/deployment.yaml | 24 ++++++++++++++++++++++++ deploy/redis/service.yaml | 18 ++++++++++++++++++ deploy/vote/deployment.yaml | 24 ++++++++++++++++++++++++ deploy/vote/service.yaml | 19 +++++++++++++++++++ 4 files changed, 85 insertions(+) create mode 100644 deploy/redis/deployment.yaml create mode 100644 deploy/redis/service.yaml create mode 100644 deploy/vote/deployment.yaml create mode 100644 deploy/vote/service.yaml diff --git a/deploy/redis/deployment.yaml b/deploy/redis/deployment.yaml new file mode 100644 index 00000000..e8d1a349 --- /dev/null +++ b/deploy/redis/deployment.yaml @@ -0,0 +1,24 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + creationTimestamp: null + labels: + app: redis + name: redis +spec: + replicas: 1 + selector: + matchLabels: + app: redis + strategy: {} + template: + metadata: + creationTimestamp: null + labels: + app: redis + spec: + containers: + - image: redis:alpine + name: redis + resources: {} +status: {} diff --git a/deploy/redis/service.yaml b/deploy/redis/service.yaml new file mode 100644 index 00000000..51ec2144 --- /dev/null +++ b/deploy/redis/service.yaml @@ -0,0 +1,18 @@ +apiVersion: v1 +kind: Service +metadata: + creationTimestamp: null + labels: + app: redis + name: redis +spec: + ports: + - name: "6379" + port: 6379 + protocol: TCP + targetPort: 6379 + selector: + app: redis + type: ClusterIP +status: + loadBalancer: {} diff --git a/deploy/vote/deployment.yaml b/deploy/vote/deployment.yaml new file mode 100644 index 00000000..2946c2f5 --- /dev/null +++ b/deploy/vote/deployment.yaml @@ -0,0 +1,24 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + creationTimestamp: null + labels: + app: vote + name: vote +spec: + replicas: 2 + selector: + matchLabels: + app: vote + strategy: {} + template: + metadata: + creationTimestamp: null + labels: + app: vote + spec: + containers: + - image: schoolofdevops/vote:v1 + name: vote + resources: {} +status: {} diff --git a/deploy/vote/service.yaml b/deploy/vote/service.yaml new file mode 100644 index 00000000..7da25bf8 --- /dev/null +++ b/deploy/vote/service.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Service +metadata: + creationTimestamp: null + labels: + app: vote + name: vote +spec: + ports: + - name: "80" + nodePort: 30000 + port: 80 + protocol: TCP + targetPort: 80 + selector: + app: vote + type: NodePort +status: + loadBalancer: {} From f2a289dd8d22f305ad1bd25eea190422a48753d1 Mon Sep 17 00:00:00 2001 From: vinod Date: Fri, 16 Jun 2023 16:48:36 +0530 Subject: [PATCH 2/2] new commit --- file1 | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 file1 diff --git a/file1 b/file1 new file mode 100644 index 00000000..c96c1809 --- /dev/null +++ b/file1 @@ -0,0 +1,4 @@ +welcome to the git hub + + +