Кластер поднят через minikube.
Конфиг ingress и service, на который ведет ingress:
apiVersion: v1
kind: List
metadata: {}
items:
- apiVersion: v1
kind: Service
metadata:
name: promo-dev-nginx
namespace: ingress-nginx
spec:
type: ExternalName
externalName: promo-nginx.promo-dev.svc.cluster.local
ports:
- port: 80
targetPort: 80
- apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: promo-dev
namespace: ingress-nginx
spec:
rules:
- host: promo.dev
http:
paths:
- backend:
service:
name: promo-dev-nginx
port:
number: 80
path: /
pathType: ImplementationSpecific
ingressClassName: nginx-ingress-ext
status:
loadBalancer: {}
kubectl describe ingress promo-dev
Name: promo-dev
Labels: <none>
Namespace: ingress-nginx
Address: 192.168.49.2
Ingress Class: nginx-ingress-ext
Default backend: <default>
Rules:
Host Path Backends
---- ---- --------
promo.dev
/ promo-dev-nginx:80 (<error: endpoints "promo-dev-nginx" not found>)
Annotations: <none>
Events:
Type Reason Age From Message
---- ------ ---- ---- -------
Normal Sync 117s (x3 over 62m) nginx-ingress-controller Scheduled for sync