Editing Kubectl get all

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}}
* https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#get
 
[[kubectl get all -A]]
 
[[kubectl get all -n]] your-namespace
 
[[kubectl get all --all-namespaces]]
 
[[kubectl get]] all
 
[[kubectl get all grep replicaset.apps|kubectl get all]] | grep [[replicaset.apps]]
 
  
[[statefulset.apps]], [[replicaset.apps]], [[Kubernetes deployments|deployment.apps]], [[Kubernetes services|service/]], [[Pod (Kubernetes)|pod]], [[job.batch]], [[Kubernetes CronJobs|cronjob.batch]], [[daemonset.apps]], [[ClusterIP]], [[NodePort]]
 
  
 
== Examples ==
 
== Examples ==
 
  [[kubectl get]] all
 
  [[kubectl get]] all
NAME                TYPE        [[CLUSTER-IP]]  EXTERNAL-IP  PORT(S)  AGE
 
[[service/kubernetes]]  [[ClusterIP]]  10.96.0.1    <none>        443/TCP  6m40s
 
 
kubectl get all
 
 
  NAME                TYPE        CLUSTER-IP  EXTERNAL-IP  PORT(S)  AGE
 
  NAME                TYPE        CLUSTER-IP  EXTERNAL-IP  PORT(S)  AGE
  service/kubernetes  ClusterIP  10.100.0.1   <none>        443/TCP  22d
+
  service/kubernetes  ClusterIP  10.96.0.1   <none>        443/TCP  6m40s
  
 
  [[kubectl get]] all --all-[[namespaces]]
 
  [[kubectl get]] all --all-[[namespaces]]
  
  kubectl get all
+
  [[kubectl get]] all
  NAME                                                  READY  STATUS    RESTARTS  AGE
+
  The connection to the server localhost:8080 was refused - did you specify the right host or port?
pod/metrics-server-6467f65c76-kfkkl                  1/1    Running  0          2d4h
 
pod/my-release-kubernetes-dashboard-5bf6f9f78-phkvz  1/1    Running  0          2d3h
 
 
   
 
   
  NAME                                      TYPE        CLUSTER-IP      EXTERNAL-IP  PORT(S)  AGE
+
  Solution: Have you created your Kubernetes cluster <code>[[kubeadm init]]</code>?
service/kubernetes                        ClusterIP  172.20.0.1      <none>        443/TCP  2d22h
+
 
service/metrics-server                    ClusterIP  172.20.94.132  <none>        443/TCP  2d4h
+
<pre>
service/my-release-kubernetes-dashboard  ClusterIP  172.20.8.159    <none>        443/TCP  2d3h
+
kubectl get all
+
NAME                                                  READY  STATUS    RESTARTS  AGE
NAME                                              READY  UP-TO-DATE  AVAILABLE  AGE
+
pod/metrics-server-6467f65c76-kfkkl                  1/1    Running  0          2d4h
[[deployment.apps]]/[[metrics-server]]                   1/1    1            1          2d4h
+
pod/my-release-kubernetes-dashboard-5bf6f9f78-phkvz  1/1    Running  0          2d3h
deployment.apps/my-release-kubernetes-dashboard  1/1    1            1          2d3h
+
 
+
NAME                                      TYPE        CLUSTER-IP      EXTERNAL-IP  PORT(S)  AGE
NAME                                                        DESIRED  CURRENT  READY  AGE
+
service/kubernetes                        ClusterIP  172.20.0.1      <none>        443/TCP  2d22h
[[replicaset.apps]]/metrics-server-6467f65c76                  1        1        1      2d4h
+
service/metrics-server                    ClusterIP  172.20.94.132  <none>        443/TCP  2d4h
replicaset.apps/my-release-kubernetes-dashboard-5bf6f9f78  1        1        1      2d3h<
+
service/my-release-kubernetes-dashboard  ClusterIP  172.20.8.159    <none>        443/TCP  2d3h
 +
 
 +
NAME                                              READY  UP-TO-DATE  AVAILABLE  AGE
 +
deployment.apps/metrics-server                    1/1    1            1          2d4h
 +
deployment.apps/my-release-kubernetes-dashboard  1/1    1            1          2d3h
 +
 
 +
NAME                                                        DESIRED  CURRENT  READY  AGE
 +
replicaset.apps/metrics-server-6467f65c76                  1        1        1      2d4h
 +
replicaset.apps/my-release-kubernetes-dashboard-5bf6f9f78  1        1        1      2d3h<
 +
</pre>
  
  
Line 65: Line 61:
 
replicaset.apps/grafana-6d966d974b  1        1        0      3h31m
 
replicaset.apps/grafana-6d966d974b  1        1        0      3h31m
 
</pre>
 
</pre>
 
[[kubectl get]] all
 
The connection to the server localhost:8080 was refused - did you specify the right host or port?
 
 
Solution: Have you created your Kubernetes cluster <code>[[kubeadm init]]</code>?
 
 
 
kubectl get all -n tl-tool-dev 
 
No resources found in tl-tool-dev namespace
 
 
[[kubectl get all -n karpenter]]
 
 
== Activities ==
 
* [[List all resources]]: <code>[[kubectl api-resources]] --verbs=list --namespaced -o name | xargs -n 1 [[kubectl get]] --ignore-not-found --show-kind -n your-namespace</code>
 
  
 
== Related ==
 
== Related ==
 
* <code>[[kubectl get namespaces]]</code>
 
* <code>[[kubectl get namespaces]]</code>
* <code>[[kubectl cluster-info]]</code>
 
* <code>[[helm show values]]</code>
 
* <code>[[kube-dump ns]]</code>
 
* [[kubectl describe all -A]]
 
* [[Kubernetes info]]
 
  
 
== See also ==
 
== See also ==
 
* {{kubectl get}}
 
* {{kubectl get}}
* {{k8s.io}}
+
* {{kubectl}}
 
 
  
 
[[Category:Kubernetes]]
 
[[Category:Kubernetes]]

Please note that all contributions to wikieduonline may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see Wikieduonline:Copyrights for details). Do not submit copyrighted work without permission!

Cancel Editing help (opens in new window)

Advertising: