From 5b3888d2935320025ace1202146952e10b430f63 Mon Sep 17 00:00:00 2001 From: kevencript Date: Tue, 21 Mar 2023 10:09:04 -0300 Subject: [PATCH] feat: :sparkles: Ingress: Nginx ingress The NGINX Ingress Controller is a popular implementation of the Kubernetes Ingress concept, which provides external access to cluster services by routing incoming HTTP/HTTPS traffic to the appropriate backend services. By leveraging the power of the NGINX reverse proxy and load balancer, the Ingress Controller efficiently manages traffic and allows for custom routing rules and annotations. This enables developers to effectively expose and secure their applications within a Kubernetes cluster, while adhering to best practices for scalability and high availability --- k8s/ingress.yaml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 k8s/ingress.yaml diff --git a/k8s/ingress.yaml b/k8s/ingress.yaml new file mode 100644 index 0000000..d1df852 --- /dev/null +++ b/k8s/ingress.yaml @@ -0,0 +1,22 @@ +apiVersion: networking.k8s.io/v1 +kind: Ingress +metadata: + name: myingress + annotations: + kubernetes.io/ingress.class: "nginx" + labels: + name: myingress +spec: + rules: + - host: kind-cluster.example + http: + paths: + - pathType: Prefix + path: "/" + backend: + service: + name: go-http-app-service + port: + number: 80 + +