Closed mohammed-infstones closed 1 year ago
@mohammed-infstones, would you be able to share the ingress spec?
kind: Ingress
metadata:
name: {{ .Values.appName }}-server
namespace: {{ .Values.k8sNamespace }}
labels:
aws-load-balancer-scheme: "{{ .Values.lbScheme }}"
annotations:
kubernetes.io/ingress.class: alb
alb.ingress.kubernetes.io/group.name: {{ .Values.appName }}
external-dns.alpha.kubernetes.io/hostname: admin.cloud.{{ .Values.domainName }}
alb.ingress.kubernetes.io/certificate-arn: {{ .Values.cloudSslCertArn }}
alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS":{{ .Values.adminTargetPort }}}]'
alb.ingress.kubernetes.io/load-balancer-name: wsa-alb-{{ .Values.domainNameTransposed }}
alb.ingress.kubernetes.io/scheme: "{{ .Values.lbScheme }}"
alb.ingress.kubernetes.io/target-type: ip
service.beta.kubernetes.io/aws-load-balancer-scheme: "{{ .Values.lbScheme }}"
spec:
rules:
- http:
- http:
paths:
- pathType: ImplementationSpecific
backend:
service:
name: {{ .Values.appName }}-server
port:
number: {{ .Values.adminTargetPort }}
kind: Service
metadata:
namespace: {{ .Values.k8sNamespace }}
name: {{ .Values.appName }}-server
spec:
ports:
- port: {{ .Values.adminTargetPort }}
targetPort: {{ .Values.adminTargetPort }}
protocol: TCP
type: NodePort
selector:
app: {{ .Values.appName }}```
/kind bug
When I try to patch it by removing the finalizers, I get the error {"level":"error","ts":"2023-04-17T17:42:13Z","msg":"Reconciler error","controller":"ingress","object":{"name":"webserviceadmin"},"namespace":"","name":"webserviceadmin","reconcileID":"bfcec579-35ab-4313-8f5b-56569eaa23b3","error":"Internal error occurred: failed calling webhook \"vingress.elbv2.k8s.aws\": failed to call webhook: Post \"https://aws-load-balancer-webhook-service.kube-system.svc:443/validate-networking-v1-ingress?timeout=10s\": EOF"}
@mohammed-infstones, it is due to a bug in the ingress validator, introduced in v2.5.0 #2735. The validator is currently not able to handle ingress rules with empty http path. We will fix it as soon as possible in a patch release.
@kishorj will it fix if I rollback to previous version?
@mohammed-infstones, previous version 2.4.x is not affected by this bug. We will release v2.5.1 with the fix.
@kishorj thank you! Any timeline for that fix?
@kishorj thank you! Any timeline for that fix?
asap
PR #3160
Describe the bug A concise description of what the bug is. When deleting or patching the ingress controller, its stuck in terminating state with the following error message
Steps to reproduce
Deploy ingress using a helm chart and update or terminate it
Expected outcome A concise description of what you expected to happen. The ingress should be updated or deleted
Environment Dev EKS
Additional Context: