Difference between revisions of "Kubectl cluster-info dump"
Jump to navigation
Jump to search
(11 intermediate revisions by the same user not shown) | |||
Line 4: | Line 4: | ||
[[kubectl cluster-info]] dump | [[kubectl cluster-info]] dump | ||
.../... | .../... | ||
+ | |||
+ | Note: kubectl cluster-info dump do not include information about APIs. Use: | ||
+ | [[kubectl cluster-info dump]] && [[kubectl api-resources]] | ||
+ | |||
kubectl cluster-info dump | wc -l | kubectl cluster-info dump | wc -l | ||
5840 | 5840 | ||
+ | |||
+ | kubectl cluster-info dump | wc -l | ||
+ | 10124 | ||
== [[Minikube]] == | == [[Minikube]] == | ||
Line 12: | Line 19: | ||
3123 | 3123 | ||
− | kubectl cluster-info dump | grep '"kind":' | trim | + | == Kind == |
+ | kubectl cluster-info dump | grep '"kind":' | sort | uniq | trim | ||
+ | "[[kind]]": "[[DaemonSet]]", | ||
+ | "kind": "[[Deployment]]", | ||
+ | "kind": "Node", | ||
+ | "kind": "ReplicaSet", | ||
+ | "kind": "[[DaemonSetList]]", | ||
+ | "kind": "[[DeploymentList]]", | ||
+ | "kind": "EventList", | ||
"kind": "[[NodeList]]", | "kind": "[[NodeList]]", | ||
− | "kind": "[[ | + | "kind": "[[PodList]]", |
+ | "kind": "[[ReplicaSetList]]", | ||
"kind": "[[ReplicationControllerList]]", | "kind": "[[ReplicationControllerList]]", | ||
"kind": "[[ServiceList]]", | "kind": "[[ServiceList]]", | ||
− | "kind": "DaemonSetList", | + | |
+ | kubectl cluster-info dump | grep '"kind":' | sort | uniq | trim | ||
+ | "kind": "DaemonSet", | ||
+ | "kind": "[[DaemonSetList]]", | ||
+ | "kind": "Deployment", | ||
"kind": "DeploymentList", | "kind": "DeploymentList", | ||
− | "kind": " | + | "kind": "EventList", |
− | "kind": " | + | "kind": "NodeList", |
+ | "kind": "Pod", | ||
"kind": "PodList", | "kind": "PodList", | ||
"kind": "ReplicaSet", | "kind": "ReplicaSet", | ||
− | "kind": " | + | "kind": "ReplicaSetList", |
− | |||
− | |||
− | |||
− | |||
− | |||
"kind": "ReplicationControllerList", | "kind": "ReplicationControllerList", | ||
"kind": "ServiceList", | "kind": "ServiceList", | ||
− | + | ||
− | + | == apiVersion == | |
− | " | + | "apiVersion": "[[apps/v1]]", |
− | " | + | "apiVersion": "v1", |
== Related == | == Related == | ||
* <code>[[kubectl cluster-info]]</code> | * <code>[[kubectl cluster-info]]</code> | ||
+ | * <code>[[kubectl api-resources]]</code> | ||
== See also == | == See also == | ||
* {{kubectl info}} | * {{kubectl info}} | ||
* {{K8s info}} | * {{K8s info}} | ||
+ | * {{K8s tr}} | ||
[[Category:K8s]] | [[Category:K8s]] |
Latest revision as of 17:37, 14 December 2023
https://www.mankier.com/1/kubectl-cluster-info-dump
kubectl cluster-info dump .../...
Note: kubectl cluster-info dump do not include information about APIs. Use: kubectl cluster-info dump && kubectl api-resources
kubectl cluster-info dump | wc -l 5840
kubectl cluster-info dump | wc -l 10124
Contents
Minikube[edit]
kubectl cluster-info dump | wc -l 3123
Kind[edit]
kubectl cluster-info dump | grep '"kind":' | sort | uniq | trim "kind": "DaemonSet", "kind": "Deployment", "kind": "Node", "kind": "ReplicaSet", "kind": "DaemonSetList", "kind": "DeploymentList", "kind": "EventList", "kind": "NodeList", "kind": "PodList", "kind": "ReplicaSetList", "kind": "ReplicationControllerList", "kind": "ServiceList",
kubectl cluster-info dump | grep '"kind":' | sort | uniq | trim "kind": "DaemonSet", "kind": "DaemonSetList", "kind": "Deployment", "kind": "DeploymentList", "kind": "EventList", "kind": "NodeList", "kind": "Pod", "kind": "PodList", "kind": "ReplicaSet", "kind": "ReplicaSetList", "kind": "ReplicationControllerList", "kind": "ServiceList",
apiVersion[edit]
"apiVersion": "apps/v1", "apiVersion": "v1",
Related[edit]
See also[edit]
- Kubectl information commands:
cluster-info
|view
|pods
|nodes
|services
|version
|describe | logs
- Kubernetes info:
kubectl config view, kubectl cluster-info dump
- K8s troubleshooting:
kubectl logs, kubectl top, kubectl get events -A, kubectl describe pod
, Liveness, Readiness,Kubernetes events
, Pulling image, OOMKilled, ProbeWarning, Reason,FailedScheduling
,errImagePull, ImagePullBackOff
, Kubelet conditions:MemoryPressure, DiskPressure, KubeletHasSufficientPID, KubeletReady, kubectl [ debug | attach | exec ] kubectl cluster-info dump, SimKube, KWOK
Advertising: