故障描述:
正式环境替换ssl证书后,发现集群内服务都无法正常启动,查看apiserver日志报错如下:
E1220 03:01:15.790665 1 authentication.go:53] Unable to authenticate the request due to an error: x509: certificate has expired or is not yet valid
E1220 03:01:18.770191 1 authentication.go:53] Unable to authenticate the request due to an error: x509: certificate has expired or is not yet valid
E1220 03:01:21.264849 1 authentication.go:53] Unable to authenticate the request due to an error: x509: certificate has expired or is not yet valid
E1220 03:01:25.381678 1 authentication.go:53] Unable to authenticate the request due to an error: x509: certificate has expired or is not yet valid
E1220 03:01:25.419550 1 authentication.go:53] Unable to authenticate the request due to an error: x509: certificate has expired or is not yet valid
kubelet日志报错:
Dec 20 12:47:03 tsfb-master01 kubelet[15406