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