Sobes.tech
Junior — Middle

Can you describe your experience with Nginx Ingress and in what cases it was used?

sobes.tech AI

Answer from AI

Nginx Ingress is used in Kubernetes to manage incoming HTTP(S) traffic to services within the cluster. In my experience, I have configured the Nginx Ingress Controller to route requests based on different paths and hosts, provided SSL termination, and load balancing.

I applied it when I needed to organize access to multiple microservices through a single external IP with different routing rules. I also used annotations to configure rate limiting and authentication at the Ingress level.

Example of an Ingress configuration:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: example-ingress
  annotations:
    nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
  rules:
  - host: example.com
    http:
      paths:
      - path: /service1(/|$)(.*)
        pathType: Prefix
        backend:
          service:
            name: service1
            port:
              number: 80
      - path: /service2(/|$)(.*)
        pathType: Prefix
        backend:
          service:
            name: service2
            port:
              number: 80