Editing Kubectl get nodes
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
{{lowercase}} | {{lowercase}} | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[kubectl get]] [[nodes]] | [[kubectl get]] [[nodes]] | ||
− | NAME STATUS | + | NAME STATUS ROLES AGE [[Kubectl version|VERSION]] |
node2 Ready <none> 23h v1.14.3-docker-2 | node2 Ready <none> 23h v1.14.3-docker-2 | ||
ubuntu1804-1 Ready master 23h v1.14.3-docker-2 | ubuntu1804-1 Ready master 23h v1.14.3-docker-2 | ||
Line 33: | Line 14: | ||
master Ready master 67m v1.14.0 | master Ready master 67m v1.14.0 | ||
node01 Ready <none> 67m v1.14.0 | node01 Ready <none> 67m v1.14.0 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== [[EKS]] == | == [[EKS]] == | ||
− | + | kubectl get nodes | |
NAME STATUS ROLES AGE VERSION | NAME STATUS ROLES AGE VERSION | ||
ip-192-168-72-109.us-east-2.compute.internal Ready <none> 9m38s v[[1.21]].5-eks-bc4871b | ip-192-168-72-109.us-east-2.compute.internal Ready <none> 9m38s v[[1.21]].5-eks-bc4871b | ||
ip-192-168-8-185.us-east-2.compute.internal Ready <none> 9m34s v1.21.5-eks-bc4871b | ip-192-168-8-185.us-east-2.compute.internal Ready <none> 9m34s v1.21.5-eks-bc4871b | ||
− | + | Terraform example: | |
kubectl get nodes | kubectl get nodes | ||
NAME STATUS ROLES AGE VERSION | NAME STATUS ROLES AGE VERSION | ||
Line 55: | Line 28: | ||
ip-10-0-3-153.us-east-2.compute.internal Ready <none> 32m v1.20.11-eks-f17b81 | ip-10-0-3-153.us-east-2.compute.internal Ready <none> 32m v1.20.11-eks-f17b81 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
[[kubectl get]] nodes | [[kubectl get]] nodes | ||
− | + | Unable to connect to the server: dial tcp: lookup 00A50xxxx.gr7.us-east-2.eks.amazonaws.com: [[no such host]] | |
Solution: review <code>[[~/.kube/config]]</code> | Solution: review <code>[[~/.kube/config]]</code> | ||
[[kubectl get]] nodes | [[kubectl get]] nodes | ||
− | The connection to the server localhost:8080 | + | The connection to the server localhost:8080 was refused - did you specify the right host or port? |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== [[Minikube]] == | == [[Minikube]] == | ||
− | |||
− | |||
− | |||
− | |||
kubectl get nodes | kubectl get nodes | ||
Line 99: | Line 47: | ||
minikube Ready master 12m v1.18.0 | minikube Ready master 12m v1.18.0 | ||
− | + | == [[Kind]] == | |
− | |||
− | == [[ | ||
− | |||
− | |||
− | |||
− | |||
− | |||
kubectl get nodes | kubectl get nodes | ||
NAME STATUS ROLES AGE VERSION | NAME STATUS ROLES AGE VERSION | ||
kind-control-plane Ready control-plane,master 10m v1.20.2 | kind-control-plane Ready control-plane,master 10m v1.20.2 | ||
− | |||
− | |||
− | |||
− | |||
− | |||
Line 128: | Line 64: | ||
[[error: You must be logged in to the server (Unauthorized)]] | [[error: You must be logged in to the server (Unauthorized)]] | ||
− | == Related == | + | == Related commands == |
* <code>[[kubectl get pods]]</code> | * <code>[[kubectl get pods]]</code> | ||
− | |||
* <code>[[kubectl describe nodes]]</code> | * <code>[[kubectl describe nodes]]</code> | ||
* <code>[[kubectl label]]</code> | * <code>[[kubectl label]]</code> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
== See also == | == See also == | ||
− | * {{kubectl | + | * {{kubectl info}} |
− | * {{kubectl | + | * {{kubectl}} |
− | |||
[[Category:Kubernetes]] | [[Category:Kubernetes]] |
Advertising: