Hay EKS Cluster, el complemento AWS CNI reemplazado por Calico (la causa de instalar Calico aquí ). Después de instalar chart by helm, ejecuto kubectl describe ingress -n my-ns y veo un error: ...Failed deploy model due to Internal error occurred: failed calling webhook "mtargetgroupbinding.elbv2.k8s.aws"...
Mi ingress.yaml :
{{- if .Values.ingress.enabled -}} {{- $fullName := include "front.fullname" . -}} {{- $svcPort := .Values.service.port -}} {{- if semverCompare ">=1.14-0" .Capabilities.KubeVersion.GitVersion -}} apiVersion: networking.k8s.io/v1beta1 {{- else -}} apiVersion: extensions/v1beta1 {{- end }} kind: Ingress metadata: name: {{ $fullName }} labels: {{- include "front.labels" . | nindent 4 }} annotations: kubernetes.io/ingress.class: alb alb.ingress.kubernetes.io/target-type: instance alb.ingress.kubernetes.io/subnets: subnet-0bbd31e479f6211d7, subnet-017bb4e710d71fcc1, subnet-0e8474c825ada2138 # Public Subnets spec: {{- if .Values.ingress.tls }} tls: {{- range .Values.ingress.tls }} - hosts: {{- range .hosts }} - {{ . | quote }} {{- end }} secretName: {{ .secretName }} {{- end }} {{- end }} rules: - http: paths: - path: /hello backend: serviceName: {{ $fullName }} servicePort: {{ $svcPort }} {{- end }} service.yaml :
apiVersion: v1 kind: Service metadata: name: {{ include "front.fullname" . }} labels: {{- include "front.labels" . | nindent 4 }} spec: type: NodePort ports: - port: {{ .Values.service.port }} targetPort: http protocol: TCP name: http selector: {{- include "front.selectorLabels" . | nindent 4 }}En la consola de AWS parece que todo está bien, ALB tiene un estado activo, pero falló al seguir el nombre de DNS.
El hecho interesante es que si reemplazo el tipo de servicio con LoadBalancer, Classic Load Balancer se implementará y funcionará bien, el nombre DNS funciona.
Me doy cuenta de que la información inicial puede parecer desordenada e insuficiente, pero no tengo idea de qué dirección seguir para resolver el problema. Estaré encantado de proporcionar todos los detalles necesarios, lo que sea que me pidan, y agradeceré cualquier ayuda.