Solve Kube Config K3d Expired

AH
Ahmad Lukman Hakim

Engineer, Jakarta

# 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 value client-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!

© 2026 LUKMANLAB

A special thanks for the design inspiration from mas Nur Praditya

Terms & Conditions