Actualizar workloads/nginx/nginx-resources.yaml
This commit is contained in:
@@ -34,16 +34,16 @@ spec:
|
|||||||
port: 80
|
port: 80
|
||||||
targetPort: 80
|
targetPort: 80
|
||||||
|
|
||||||
---
|
# 3. El Ingress (Versión a prueba de fallos)
|
||||||
apiVersion: networking.k8s.io/v1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: nginx-ingress
|
name: nginx-ingress
|
||||||
namespace: kube-system
|
namespace: kube-system
|
||||||
|
# 🔴 Hemos quitado todas las annotations para ver si el clúster lo toma por defecto
|
||||||
spec:
|
spec:
|
||||||
ingressClassName: nginx # 🔴 LA CLAVE: Esto enlaza el Ingress con el Controller que está en kube-system
|
|
||||||
rules:
|
rules:
|
||||||
- host: app.cruzcloud.net
|
- host: nginx.cruzcloud.net
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
|||||||
Reference in New Issue
Block a user