I am working on a GKE on VMware cluster. Whenever I interact with the admin cluster, I receive the following error:
Unable to connect to the server: x509: certificate has expired or is not yet valid
I am working on a GKE on VMware cluster. Whenever I interact with the admin cluster, I receive the following error:
Unable to connect to the server: x509: certificate has expired or is not yet valid
Hi @shayan ! To address the error you mention, you can try the following:
Hope this helps.
Since the cluster is on GKE on VMware, kubeadm does not work in this case.
I checked the system time using timedatectl, and it is correct. As the hybrid and the rest of the activities are functioning properly, the system time is not an issue.
Hi @shayan , apologies that the previous answer didn’t resolve the issue. We are currently reviewing the issue and will provide an update when we have more details.
Thank you for your patience and for reaching out to the community.
@shayan If you have SSH access to your gke-admin-master VM, the file /etc/kubernetes/admin.conf is a kubeconfig you can use to interact with the admin cluster locally to help you in troubleshooting.
(I’m just a GKE user, not a Googler)
Hi @grsiepka ,
The SSH key for the admin cluster nodes is also not working. When I try to interact with the admin cluster using the admin cluster’s kubeconfig, I receive the following error:
Unable to connect to the server: x509: certificate has expired or is not yet valid.
You stated you checked system time earlier and it was right (assuming on your local or on your admin-workstation) but you really should check the same on your gke-admin-master node, but if you can’t ssh into admin-master node i’m not sure how else you can do that. Maybe force sync system time on the VM from Vcenter? (just a guess) Might be worth getting a case open with support IMO. Good luck.
The “x509: certificate has expired or is not yet valid” error indicates that the admin cluster’s certificate is either expired or not yet valid. Here are some steps to fix it:
Hi everyone, thank you so much for engaging in this discussion and sharing your insights ![]()
@shayan , if any of these replies helped, please consider marking one of them as accepted solutions to assist others who might encounter a similar situation.
We appreciate everyone’s participation and look forward to seeing you all engage in the forum.