Comments (5)
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.
But there is no /etc/kubernetes/admin.conf
inside the control plane node.
from kubernetes.
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.
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.
Thanks for posting the solution.
from kubernetes.
Related Issues (20)
- Need help please, I cannt vagrant up repo vagrant-provisioning. HOT 1
- MetalLB generated IP-Adress for Loadbalancer is unreachable HOT 5
- Doubt regarding the CronJob HOT 3
- Feed-back, would you be kind enough to use nginx external load balancer? HOT 1
- unable to install istiod HOT 2
- Since i don't find where i can contact you personally HOT 6
- Internet connection HOT 1
- Can't setup HA Cluster with 1.24.6 HOT 15
- Containers unstable HOT 1
- not able to run vagrant up on ubuntu 22.04 using the vagrant file HOT 1
- LXD provisioning for kubernetes isnt working HOT 2
- ingress-nginx define the localhost ip as ingress address instead of IP from metallb addresspool HOT 7
- Internet issue when running cluster in corporate network HOT 2
- ingress-nginx get 400 HOT 2
- bootstrap_kmaster task 1 is not able to pull HOT 4
- kmaster: [TASK 4] Generate and save cluster join command to /joincluster.sh step return a non-zero exit status HOT 4
- LXC/LXD - Kubernetes Cluster created but not working HOT 3
- ClusterAPI HOT 2
- Create Kubernetes cluster using Vagrant. HOT 2
- LXD Provisioning HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kubernetes.