Ingress-nginx: After upgrade from 0.24.1 to 0.31 ... remote error: tls: bad certificate

Created on 27 Apr 2020  路  7Comments  路  Source: kubernetes/ingress-nginx

NGINX Ingress controller version:
0.31
Kubernetes version (use kubectl version):
Server Version: version.Info{Major:"1", Minor:"15+", GitVersion:"v1.15.11-gke.9", GitCommit:"e1af17fd873e15a48769e2c7b9851405f89e3d0d", GitTreeState:"clean", BuildDate:"2020-04-06T20:56:54Z", GoVersion:"go1.12.17b4", Compiler:"gc", Platform:"linux/amd64"}
Environment:
GKE
Linux cs-6000-devshell-vm-601a26fc-e33d-4c40-a844-c24cbbc51f18 4.19.112+ #1 SMP Sat Apr 4 00:12:45 PDT 2020 x86_64 GNU/Linux

  • Cloud provider or hardware configuration:
  • OS (e.g. from /etc/os-release):
  • Kernel (e.g. uname -a):
  • Install tools:
  • Others:

What happened:
We upgraded from 0.24.1 to 0.31 and we are no longer able to create ingresses

kubectl apply -f tmp/apps-ingress.yml
Error from server (InternalError): error when creating "tmp/apps-ingress.yml": Internal error occurred: failed calling webhook "validate.nginx.ingress.kubernetes.io": Post https://ingress-nginx-controller-admission.ingress-nginx.svc:443/extensions/v1beta1/ingresses?timeout=30s: x509: certificate signed by unknown authority

In the logs, we see

http: TLS handshake error from 10.162.0.60:35350: remote error: tls: bad certificate

What you expected to happen:

How to reproduce it:

No idea ! 馃槩

Anything else we need to know:

/kind bug

kinbug

All 7 comments

I'm having the same error after de upgrade and the loadbalancer from cloud provider (Oracle cloud) is with status critical.

Little update, i ended up deleting everything in the ingress-nginx namespace, incl webhooks, and re-install from fresh using helm.

Unfortunatly, the same issue is still there.

@sadortun I cannot reproduce the issue

# Use 1.15
kind create cluster --image=kindest/node:v1.15.7

# create a namespace
k create ns ing

# Add chart repository
helm repo add ingress-nginx https://kubernetes.github.io/ingress-nginx
helm install my-release ingress-nginx/ingress-nginx \
  --namespace ing \
  --set controller.service.type=NodePort

# Install example app
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/master/docs/examples/http-svc.yaml

echo "
apiVersion: networking.k8s.io/v1beta1
kind: Ingress
metadata:
  name: ingress
spec:
  rules:
  - host: foo.bar.com
    http:
      paths:
      - path: /
        backend:
          serviceName: http-svc
          servicePort: 80
" | kubectl apply -f -

How are you installing the ingress controller?

Hi @aledbf Have you tried to install first version 0.24.1, then upgrade it to latest ? I am sure there is no issues with only installing latest release.

Yes, i installed/re-installed the ingress controller.

Maybe related to #5401

That issue is fixed in 0.31.1.

New release fixed the issue.

Thanks,
Samuel

Was this page helpful?
0 / 5 - 0 ratings

Related issues

yuyang0 picture yuyang0  路  3Comments

smeruelo picture smeruelo  路  3Comments

boazj picture boazj  路  3Comments

cxj110 picture cxj110  路  3Comments

geek876 picture geek876  路  3Comments