I am getting the rpc error: code = DeadlineExceeded error in kubernetes pod
I installed docker images through helm install command, and after running kuberctl get pod -n namespace I got a few pods in init:0/1 status.
On checking the logs of the pod using the command kubectl logs pod-name -n namespace -c initContainer I am getting the following error in logs –
{“attempt”:0,”caller”:”[email protected]/retry_interceptor.go:62″,”error”:”rpc error: code = DeadlineExceeded desc = latest balancer error: last connection error: connection error: desc = “transport: authentication handshake failed: x509: certificate has expired or is not yet valid: current time 2024-07-08T10:32:02Z is after 2024-07-03T11:06:32Z””,”logger”:”etcd-client”,”message”:”retrying of unary invoker failed”,”metadata”:{“container_name”:”init”,”namespace”:”namespace”,”pod_name”:”pod-name-1″},”service_id”:”chart-name”,”severity”:”warning”,”target”:”etcd-endpoints://0xc00014a8c0/chart-name.namespace:2379″,”timestamp”:”2024-07-08T10:32:05.362+00:00″,”version”:”1.2.0″}
I have checked the etcd certificate, it is valid.
Any suggestions on how to resolve this error?