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