When i run the kubectl version command , I get the following error message.
kubectl version Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.0", GitCommit:"925c127ec6b946659ad0fd596fa959be43f0cc05", GitTreeState:"clean", BuildDate:"2017-12-15T21:07:38Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"} Unable to connect to the server: dial tcp 192.168.99.100:8443: i/o timeout
How do I resolve this?
The error dial tcp: i/o timeout occurs when a timeout happens between the Agent and the Blackire.io servers. If you encounter this issue, you may increase the timeout of the Agent by appending the following line to the Agent configuration: timeout=30s.
<name> To remove a context, you can run kubectl --kubeconfig=config-demo config unset contexts.
What this says is that you can create or modify contexts in your kubeconfig file with the command kubectl config set-context. This command also accepts the name of the context to be changed (or --current if you want to change the current context), as well as --user, --cluster, and --namespace options.
You can get relevant information about the client-server status by using the following command.
kubectl config view
Now you can update or set k8s context accordingly with the following command.
kubectl config use-context CONTEXT-CHOSEN-FROM-PREVIOUS-COMMAND-OUTPUT
you can do further action on kubeconfig file. the following command will provide you with all necessary information.
kubectl config --help
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With