From 27dd36813098f15625ae7f5df989fc4f6809fcc0 Mon Sep 17 00:00:00 2001 From: Luis Angel Arvelo Date: Fri, 13 Oct 2023 15:38:35 +0000 Subject: [PATCH] Setup aws auth changes to kubectl, add deployment and service yaml files to kubectl --- eks/aws-auth.yaml | 11 +++++++++++ eks/deployment.yaml | 21 +++++++++++++++++++++ eks/service.yaml | 12 ++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 eks/aws-auth.yaml create mode 100644 eks/deployment.yaml create mode 100644 eks/service.yaml diff --git a/eks/aws-auth.yaml b/eks/aws-auth.yaml new file mode 100644 index 0000000..fecf57a --- /dev/null +++ b/eks/aws-auth.yaml @@ -0,0 +1,11 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: aws-auth + namespace: kube-system +data: + mapUsers: | + - userarn: arn:aws:iam::669669085884:user/github-actions + username: github-actions + groups: + - system:masters \ No newline at end of file diff --git a/eks/deployment.yaml b/eks/deployment.yaml new file mode 100644 index 0000000..94a6874 --- /dev/null +++ b/eks/deployment.yaml @@ -0,0 +1,21 @@ +apiVersion: apps/v1 +kind: Deployment +metadata: + name: rbd-api-deployment + labels: + app: rbd-api +spec: + replicas: 1 + selector: + matchLabels: + app: rbd-api + template: + metadata: + labels: + app: rbd-api + spec: + containers: + - name: rbd-api + image: 669669085884.dkr.ecr.us-east-1.amazonaws.com/delavalom:latest + ports: + - containerPort: 8080 \ No newline at end of file diff --git a/eks/service.yaml b/eks/service.yaml new file mode 100644 index 0000000..2cd08d1 --- /dev/null +++ b/eks/service.yaml @@ -0,0 +1,12 @@ +apiVersion: v1 +kind: Service +metadata: + name: rbd-api-service +spec: + selector: + app: rbd-api + ports: + - protocol: TCP + port: 80 + targetPort: 8080 + type: LoadBalancer \ No newline at end of file