Solve Kube Config K3d Expired
AH
Ahmad Lukman Hakim
Engineer, Jakarta
publishedRabu, 4 Maret 2026
updatedSabtu, 16 Mei 2026
# kubernetes
Issue:
E0304 [timestamp] 15793 memcache.go:238] couldn't get current server API group list: the server has asked for the client to provide credentials
error: You must be logged in to the server (the server has asked for the client to provide credentials)
Check:
-
config location e.g
~/.kube/config -
cat ~/.kube/config, get the valueclient-certificate-data:value.
echo '<base64encodedcertificate>' | base64 -d | openssl x509 -text -noout
Solve:
-
k3d kubeconfig get <cluster_name>- Copy the output (kube config)
-
cp ~/.kube/config ~/.kube/config.old -
echo "" > ~/.kube/config -
vi ~/.kube/config- Paste the kube config -> Save!