Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Kubernetes ingress "an error on the server ("") has prevented the request from succeeding"

I have a managed azure cluster (AKS) with nginx ingress in it. It was working fine but now nginx ingress stopped:

# kubectl -v=7 logs nginx-ingress-<pod-hash> -n nginx-ingress
GET https://<PRIVATE-IP-SVC-Kubernetes>:443/version?timeout=32s
I1205 16:59:31.791773       9 round_trippers.go:423] Request Headers:
I1205 16:59:31.791779       9 round_trippers.go:426]     Accept: application/json, */*
Unexpected error discovering Kubernetes version (attempt 2): an error on the server ("") has prevented the request from succeeding
# kubectl describe svc kubernetes
Name:              kubernetes
Namespace:         default
Labels:            component=apiserver
                   provider=kubernetes
Annotations:       <none>
Selector:          <none>
Type:              ClusterIP
IP:                <PRIVATE-IP-SVC-Kubernetes>
Port:              https  443/TCP
TargetPort:        443/TCP
Endpoints:         <PUBLIC-IP-SVC-Kubernetes>:443
Session Affinity:  None
Events:            <none>

When I tried to curl https://PRIVATE-IP-SVC-Kubernetes:443/version?timeout=32s, I've always seen the same output:

curl: (35) SSL connect error

like image 746
hajji_0081 Avatar asked Dec 05 '19 17:12

hajji_0081


1 Answers

I faced the same issue with three manager cluster and I was accessing it through ucp client bundle. I figured out 2 out of 3 manager nodes were in not ready state. On debugging further I found space issue on those not ready boxes. After cleaning a little (mainly /var folder) and restart docker, those nodes came to ready state and I'm not getting this error.

like image 68
shashi Avatar answered Oct 20 '22 23:10

shashi