Я развернул контроллер ingress nginx, используя этот Ingress- Nginx -Do c в Aws кластер EKS
Проблема:
---
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
name: my-ingress
namespace: mynamespace
annotations:
kubernetes.io/ingress.class: "nginx"
nginx.ingress.kubernetes.io/use-regex: "true"
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
spec:
- path: /
backend:
serviceName: my-app
servicePort: 7300
, когда я открываю свое приложение. http://load-balancer-url/ nginx метание 503.
[27/May/2020:15:27:40 +0000] "GET / HTTP/1.1" 503 600 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36" 662 0.000 [namespace-serviceName-7300] [] - - - - 21eb2db883548292ce20a71ddf45df99
W0527 15:39:07.037844 6 controller.go:909] Service "mynamespace/service" does not have any active Endpoint.
Не хватает ли аннотаций?
---
apiVersion: v1
kind: Service
metadata:
name: my-app
labels:
app: my-app
spec:
type: ClusterIP
ports:
- protocol : TCP
port: 7300
targetPort: 7300
selector:
name: my-app
namespace: my-namespace