From 084aa23fbeb2bf9fb4531db5d465e9163b14b316 Mon Sep 17 00:00:00 2001 From: Narayana Date: Wed, 5 Apr 2023 09:00:49 +0530 Subject: [PATCH] . --- kubernetes/deployment.yaml | 3 +-- kubernetes/loadbalancer.yaml | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 kubernetes/loadbalancer.yaml diff --git a/kubernetes/deployment.yaml b/kubernetes/deployment.yaml index fac3aa97a..054b5992f 100644 --- a/kubernetes/deployment.yaml +++ b/kubernetes/deployment.yaml @@ -62,5 +62,4 @@ spec: memory: 1Gi cpu: "0.2" ports: - - containerPort: 8000 - + - containerPort: 8000 \ No newline at end of file diff --git a/kubernetes/loadbalancer.yaml b/kubernetes/loadbalancer.yaml new file mode 100644 index 000000000..cebbe753c --- /dev/null +++ b/kubernetes/loadbalancer.yaml @@ -0,0 +1,16 @@ +apiVersion: v1 +kind: Service +metadata: + name: plane + namespace: plane-sandbox + annotations: + service.beta.kubernetes.io/aws-load-balancer-type: "nlb" + service.beta.kubernetes.io/aws-load-balancer-eip-allocations: "eipalloc-0b95f47db683daaeb,eipalloc-0113ae1793232614c,eipalloc-09a1830c7d2a29f87" +spec: + selector: + app: plane-sandbox + ports: + - name: http + port: 80 + targetPort: 3000 + type: LoadBalancer