From e9742634feb097e02741c3b021eb461b6badb784 Mon Sep 17 00:00:00 2001 From: lexarflash8g Date: Tue, 3 Aug 2021 00:47:57 +0000 Subject: [PATCH 1/4] Added vote/deploy --- deploy/redis/redis.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/redis.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/redis.yaml b/deploy/redis/redis.yaml new file mode 100644 index 00000000..e8d1a349 --- /dev/null +++ b/deploy/redis/redis.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..83196984 --- /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: 637 + 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 14202e528b40ae641958240f098616ac54bc0e15 Mon Sep 17 00:00:00 2001 From: lexarflash8g Date: Tue, 3 Aug 2021 00:53:18 +0000 Subject: [PATCH 2/4] Addd redme --- deploy/README.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 deploy/README.md diff --git a/deploy/README.md b/deploy/README.md new file mode 100644 index 00000000..e845566c --- /dev/null +++ b/deploy/README.md @@ -0,0 +1 @@ +README From 88fff063de73daf4ecab3f94d37b5a97bf2f2dae Mon Sep 17 00:00:00 2001 From: lexarflash8g Date: Tue, 3 Aug 2021 01:02:46 +0000 Subject: [PATCH 3/4] added feature --- deploy/vote/deployment.yaml | 1 + deploy/vote/service.yaml | 1 + vote/deployment.yaml | 24 ++++++++++++++++++++++++ vote/service.yaml | 19 +++++++++++++++++++ 4 files changed, 45 insertions(+) create mode 100644 vote/deployment.yaml create mode 100644 vote/service.yaml diff --git a/deploy/vote/deployment.yaml b/deploy/vote/deployment.yaml index 2946c2f5..a40d8a5b 100644 --- a/deploy/vote/deployment.yaml +++ b/deploy/vote/deployment.yaml @@ -16,6 +16,7 @@ spec: creationTimestamp: null labels: app: vote + tier: front spec: containers: - image: schoolofdevops/vote:v1 diff --git a/deploy/vote/service.yaml b/deploy/vote/service.yaml index 7da25bf8..c39517c3 100644 --- a/deploy/vote/service.yaml +++ b/deploy/vote/service.yaml @@ -4,6 +4,7 @@ metadata: creationTimestamp: null labels: app: vote + tier: vote name: vote spec: ports: diff --git a/vote/deployment.yaml b/vote/deployment.yaml new file mode 100644 index 00000000..2946c2f5 --- /dev/null +++ b/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/vote/service.yaml b/vote/service.yaml new file mode 100644 index 00000000..7da25bf8 --- /dev/null +++ b/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 b7b56ad6dd4108deb2a14a0922dfafdddb713a8b Mon Sep 17 00:00:00 2001 From: lexarflash8g Date: Tue, 3 Aug 2021 01:06:55 +0000 Subject: [PATCH 4/4] feature --- deploy/vote/new | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 deploy/vote/new diff --git a/deploy/vote/new b/deploy/vote/new new file mode 100644 index 00000000..e69de29b