Coder Social home page Coder Social logo

Comments (5)

ak2766 avatar ak2766 commented on May 20, 2024

The /etc/kubernetes/admin.conf refers to the location on the first control plane node. You need to copy that file from the control plane node and put it in ~/.kube/config on the machine where you are running kubectl from.. If you do not want to copy it there, then copy it wherever else you'd like, then export KUBECONFIG=/wherever/else/you'd/like. Hopefully that works.

from kubernetes.

Devknowsnothing avatar Devknowsnothing commented on May 20, 2024

But there is no /etc/kubernetes/admin.conf inside the control plane node.

from kubernetes.

ak2766 avatar ak2766 commented on May 20, 2024

That's odd indeed. You'll need to create one using kubectl. This YouTube video will show you how to about creating one yourself as long as you know the URL of the apiserver.

from kubernetes.

Devknowsnothing avatar Devknowsnothing commented on May 20, 2024

Thank you, @ak2766 . The issue got solved and here is the link to why the nodes were acting weird in the first place. https://stackoverflow.com/questions/69472169/sudo-kubectl-get-nodes-the-connection-to-the-server-localhost8080-was-refused

from kubernetes.

ak2766 avatar ak2766 commented on May 20, 2024

Thanks for posting the solution.

from kubernetes.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.