-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
http: TLS handshake error from 172.30.117.64:25970: EOF #145
Comments
in your cluster, is kubelet running with flags '--anonymous-auth=false' or not? |
@gjmzj yes,I have |
my question is 'how can the metrics-server get authorized by the kubelet server ' when i upgrade the 'metrics-server' to 0.3.0, i get error log of 'metrics-server' POD:
|
Is it through such a deployment? |
through manifests in # mount in tmp so we can safely use from-scratch images and/or read-only containers
- name: tmp-dir
emptyDir: {}
- name: ssl-dir
secret:
secretName: metrics-server-secrets
defaultMode: 0400
containers:
- name: metrics-server
#image: k8s.gcr.io/metrics-server-amd64:v0.3.0
image: mirrorgooglecontainers/metrics-server-amd64:v0.3.1
imagePullPolicy: IfNotPresent
command:
- /metrics-server
- --kubelet-insecure-tls
- --kubelet-preferred-address-types=InternalIP
- --logtostderr=true
- --tls-cert-file=/etc/ssl/ms-cert
- --tls-private-key-file=/etc/ssl/ms-key
- --v=2
volumeMounts:
- name: tmp-dir
mountPath: /tmp
- name: ssl-dir
mountPath: /etc/ssl i created 'metrics-server-secrets' before deployment kubectl create secret generic -n kube-system metrics-server-secrets \
--from-file=ca=ca.pem \
--from-file=ms-key=metrics-server-key.pem \
--from-file=ms-cert=metrics-server.pem" |
@gjmzj metrics-server attempts to authorize itself using token authentication. Please ensure that you're running your kubelets with webhook token authentication turned on. |
@xiaomuyi looks like something's connecting and then immediately disconnecting. If everything is working, I wouldn't worry about it. |
I have similar situation
from api-server log
kubelet version is 1.12.3 i have another clusters with the same version and configuration, metrics-server works just fine |
metrics-server v0.3.1 |
thanks, turned out it's MTU issue from calico config, it was 1500 while the interface is 1450 finally |
@tvildo hi, buddy, why does the MTU configuration cause the problem? can you explain it for me? , I met the same problem, I want to kown the reason so that I can operation it , thanks |
Hi there, We had similar problems and it was also a MTU issue : while upgrading the underlying virtualization infrastructure of the kubernetes nodes, the nodes lost their MTU (8950) for a too little MTU (1450), which caused TLS packets to be too large - thus these messages (and a lot of other erratic errors). |
$ kubectl logs -f metrics-server-589cc698c4-fbw5t -n kube-system
I0930 02:55:01.584798 1 logs.go:49] http: TLS handshake error from 172.30.117.64:25830: EOF
I0930 02:55:04.354311 1 logs.go:49] http: TLS handshake error from 172.30.117.64:25904: EOF
I0930 02:55:04.890066 1 logs.go:49] http: TLS handshake error from 172.30.117.64:25914: EOF
I0930 02:55:06.195554 1 logs.go:49] http: TLS handshake error from 172.30.51.128:14770: EOF
$ cat metrics-server-deployment.yaml
......
image: hexun/metrics-server-amd64:v0.3.0
imagePullPolicy: Always
volumeMounts:
- name: tmp-dir
mountPath: /tmp
command:
- /metrics-server
- --kubelet-insecure-tls
- --kubelet-preferred-address-types=InternalIP
At present, it is possible to obtain resources by using kubectl top node / pod, but the log frequently appears "http: TLS handshake error from 172.30.117.64:52590:EOF", this problem can be solved?
The text was updated successfully, but these errors were encountered: