From e7a7055d07a20b4a44b09b577e87a58f164d0a3f Mon Sep 17 00:00:00 2001 From: Lumpiasty Date: Sat, 8 Feb 2025 03:51:56 +0100 Subject: [PATCH] add nginx ingress controller --- infra/nginx/Makefile | 4 ++++ infra/nginx/values.yaml | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 infra/nginx/Makefile create mode 100644 infra/nginx/values.yaml diff --git a/infra/nginx/Makefile b/infra/nginx/Makefile new file mode 100644 index 0000000..ffe8c5f --- /dev/null +++ b/infra/nginx/Makefile @@ -0,0 +1,4 @@ +install: + helm repo add nginx https://helm.nginx.com/stable + helm repo update nginx + helm upgrade --install -n nginx-ingress-controller --create-namespace nginx-ingress nginx/nginx-ingress --version 2.0.1 -f values.yaml diff --git a/infra/nginx/values.yaml b/infra/nginx/values.yaml new file mode 100644 index 0000000..b0c3b5a --- /dev/null +++ b/infra/nginx/values.yaml @@ -0,0 +1,18 @@ +controller: + resources: + requests: + cpu: 100m + memory: 128Mi + limits: + cpu: 100m + memory: 128Mi + + ingressClass: + create: true + setAsDefaultIngress: true + + service: + create: true + type: LoadBalancer + externalTrafficPolicy: Local + ipFamilyPolicy: RequireDualStack