VMware Cloud Foundation

 View Only
  • 1.  vks and kubectl timeout

    Posted Oct 02, 2025 03:06 AM

    good morning,

     created the supervisor cluster, accessed it with

    " vcf context create --endpoint=vks01.test.loc --insecure-skip-tls-verify=true "

    and it's fine.

    i then can use kubectl commands...but after say 24 hours, if i retry same kubectl commmands, it says:

    "

    E1002 08:58:31.719918    4840 memcache.go:265] "Unhandled Error" err="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)

    "

    any idea why?

    thank you.



    -------------------------------------------


  • 2.  RE: vks and kubectl timeout

    Posted Nov 23, 2025 10:49 AM

    @elpampa,

    Your kubectl client is reaching the Kubernetes API server, but the server is unable to validate your identity or has determined that your current credentials are insufficient or invalid for accessing cluster resources. Maybe look at expired certificates,  user role permissions, version mismatch or valid credentials.



    ------------------------------
    If you find this answer right, please 'Recommend' this post.

    Thank you!

    Regards,
    Shen
    ------------------------------



  • 3.  RE: vks and kubectl timeout

    Posted 21 days ago

    Can you give us the command to renew the token?

    Thank you!

    -------------------------------------------



  • 4.  RE: vks and kubectl timeout

    Posted 19 days ago

    vcf context refresh <supervisor>:<namespace>

    should let you renew credentials.

    -------------------------------------------