Welcome to the Linux Foundation Forum!

Lab 6.1 Step 2: No Resources Found

mabricker Posts: 6
edited October 13 in LFS258 Class Forum

After typing the command under step 2: kubectl get secrets --all-namespaces, I have "No resources found" returned. Is there some underlying detail I missed along the way?

FYI, /var/run/secrets does not exist

Best Answer

  • chrispokorni
    chrispokorni Posts: 1,603
    Answer ✓

    Hi @mabricker,

    In latest releases, Kubernetes no longer creates token secrets automatically. It becomes the user's responsibility to create them as desired. The following commands should work instead:

    export token=$(kubectl create token default)

    curl https://k8scp:6443/apis --header "Authorization: Bearer $token" -k




Upcoming Training