🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)
🕵️ SicherheitslückenHak5: Hackers Just Poisoned the Rust Supply Chain | Threat Wire(01.09.2026 um 14:00 Uhr)
🕵️ SicherheitslückenHak5: Hackers Found a Way Into Humanoid Robots | Threat Wire(04.09.2026 um 15:04 Uhr)
🔧 AI Nachrichten Bits und so #1021 (Passwort für Laufwerk)(31.08.2026 um 22:15 Uhr)
🔧 AI Nachrichten Bits und so #1022 (Wie Weißbier)(06.09.2026 um 20:39 Uhr)
🍏 iOS / Mac OSHue-App 6.0 ist da: das sind die Neuerungen(07.09.2026 um 17:21 Uhr)

🔧 Programmierung 🕛 kürzlich 3 Min Lesezeit
0

Kubernetes-Nginx Ingress controller with Path based routing

↗ Quelle (dev.to)
🗣️ Stimme:

Kubernetes Ingress Controller Setup Guide

A comprehensive guide for setting up and configuring NGINX Ingress Controller in Kubernetes, supporting both domain-based and path-based routing configurations.



Project Structure

.

├── README.md

├── ingress/

│ └── controller/

│ └── nginx/

│ ├── manifests/

│ │ └── nginx-ingress.1.5.1.yaml

│ └── config/

│ ├── domain-based-ingress.yaml

│ └── path-based-ingress.yaml

└── scripts/

└── install-helm.sh



Getting Started

Installing Helm

Helm is required for managing the NGINX Ingress Controller installation. Follow these steps to install Helm:





Download Helm





CODE
curl -o /tmp/helm.tar.gz -LO https://get.helm.sh/helm-v3.10.1-linux-amd64.tar.gz







Extract the archive





CODE
tar -C /tmp/ -zxvf /tmp/helm.tar.gz







Move helm binary to path





CODE
mv /tmp/linux-amd64/helm /usr/local/bin/helm







Make it executable





CODE
chmod +x /usr/local/bin/helm





Setting up Ingress Controller

Add the NGINX Ingress repository:




CODE
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm search repo ingress-nginx --versions








Configuration Guide

Deploy an app

deployment.yml




CODE
apiVersion: apps/v1
kind: Deployment
metadata:
name: blog-app
labels:
app: blog-app
spec:
replicas: 1
selector:
matchLabels:
app: blog-app
template:
metadata:
labels:
app: blog-app
spec:
containers:
- name: blog-app
image: <YOUR-DOCKER-HUB>/blog-app:1.7
ports:
- containerPort: 80






service.yml




CODE
apiVersion: v1
kind: Service
metadata:
name: blog-app-service
spec:
selector:
app: blog-app
ports:
- protocol: TCP
port: 80
targetPort: 80
type: ClusterIP






Path-based Routing

For routing based on URL paths:




CODE
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: blog-service
spec:
ingressClassName: nginx
rules:
- host: <YOUR-DOMAIN-NAME>
http:
paths:
- path: /blog
pathType: Prefix
backend:
service:
name: blog-service
port:
number: 80






Rewrite Rules

For advanced path rewriting:




CODE
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: blog-service
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
ingressClassName: nginx
rules:
- host: <YOUR-DOMAIN-NAME>
http:
paths:
- path: /path-a(/|$)(.*)
pathType: Prefix
backend:
service:
name: blog-service
port:
number: 80






Local Development

For local development and testing:



Port Forwarding Setup:



kubectl port-forward -n ingress-nginx service/ingress-nginx-controller 8080:80



For development and testing at poridhi lab, make sure you are using load balancer. Expose the ingress controller.



Testing Configuration:






Test the endpoint-



curl -H "Host: blog.<YOUR-DOMAIN-NAME>" http://localhost:8080/blog






For HTTPS-



curl -k -H "Host: blog.<YOUR-DOMAIN-NAME>" https://localhost:8443/blog



Troubleshooting

Common issues and their solutions:




  1. Controller Pod Issues






Check pod status-



kubectl get pods -n ingress-nginx






View controller logs-



kubectl logs -n ingress-nginx deploy/ingress-nginx-controller






Describe pod for events-



kubectl describe pod -n ingress-nginx <pod-name>




  1. Routing Problems






Verify ingress resource-



kubectl describe ingress <ingress-name>






Check endpoints-



kubectl get endpoints






Validate service-



kubectl describe service <service-name>




  1. Common Error Solutions:



404 Not Found:

Verify path configuration and service endpoint



503 Service Unavailable:

Check if backend service is running



502 Bad Gateway:

Validate service port configuration

Vollständiger Original-Bericht
Ausführliche Details, Code-Beispiele & Hersteller-Stellungnahme auf dev.to.
↗ Original-Artikel auf dev.to lesen
Wie bewertest du diesen Beitrag?
1 Klick Feedback
Teilen mit Netzwerk & Team:

Community-Analysen & Experten-Meinungen 0

Verfasse deine eigene Analyse, teile Workarounds oder diskutiere diesen Vorfall im Blog.
Noch keine Community-Analyse verfasst. Markiere einen Textabschnitt oder klicke oben auf Eigene Analyse verfassen“!
Community Pulse: Relevanz-Einschätzung
1 Klick Experten-Votum
🔴 Akute Relevanz 0%
🟡 In Evaluierung 0%
🟢 Keine Auswirkung 0%
Spannende Innovation 0%
Verwandte Story-Cluster & Quellen (Vektor-KI)
Port 8095 Engine
1 Quelle
Hackers Just Poisoned the Rust Supply Chain | Threat Wire
1 Quelle
Hackers Found a Way Into Humanoid Robots | Threat Wire
1 Quelle
Bits und so #1021 (Passwort für Laufwerk)
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten Kubernetes-Nginx Ingress controller with Path based routing

Thematisch verwandte Begriffe: KubernetesNginx, Ingress, controller, with · 6 Treffer

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...