Difference between revisions of "Kubectl get all"
Jump to navigation
Jump to search
Line 9: | Line 9: | ||
Solution: Have you created your Kubernetes cluster <code>[[kubeadm init]]</code>? | Solution: Have you created your Kubernetes cluster <code>[[kubeadm init]]</code>? | ||
+ | |||
+ | <pre> | ||
+ | kubectl get all | ||
+ | NAME READY STATUS RESTARTS AGE | ||
+ | pod/grafana-6d966d974b-7cc5f 0/1 Evicted 0 109m | ||
+ | pod/grafana-6d966d974b-8hpw6 0/1 Pending 0 109m | ||
+ | pod/grafana-6d966d974b-8s29j 0/1 Evicted 0 109m | ||
+ | pod/grafana-6d966d974b-9pn6p 0/1 Evicted 0 3h31m | ||
+ | pod/grafana-6d966d974b-k8rz5 0/1 Evicted 0 109m | ||
+ | pod/grafana-6d966d974b-q8j9w 0/1 Evicted 0 167m | ||
+ | pod/grafana-6d966d974b-scgkn 0/1 Evicted 0 109m | ||
+ | pod/grafana-6d966d974b-wmvcg 0/1 Evicted 0 109m | ||
+ | pod/grafana-6d966d974b-xjw86 0/1 Evicted 0 109m | ||
+ | pod/grafana-6d966d974b-xsvv4 0/1 Evicted 0 109m | ||
+ | |||
+ | NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE | ||
+ | service/grafana ClusterIP 10.100.234.190 <none> 80/TCP 3h31m | ||
+ | service/kubernetes ClusterIP 10.100.0.1 <none> 443/TCP 3h57m | ||
+ | |||
+ | NAME READY UP-TO-DATE AVAILABLE AGE | ||
+ | deployment.apps/grafana 0/1 1 0 3h31m | ||
+ | |||
+ | NAME DESIRED CURRENT READY AGE | ||
+ | replicaset.apps/grafana-6d966d974b 1 1 0 3h31m | ||
+ | </pre> | ||
== See also == | == See also == |
Revision as of 20:21, 28 November 2021
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
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Solution: Have you created your Kubernetes cluster kubeadm init
?
kubectl get all NAME READY STATUS RESTARTS AGE pod/grafana-6d966d974b-7cc5f 0/1 Evicted 0 109m pod/grafana-6d966d974b-8hpw6 0/1 Pending 0 109m pod/grafana-6d966d974b-8s29j 0/1 Evicted 0 109m pod/grafana-6d966d974b-9pn6p 0/1 Evicted 0 3h31m pod/grafana-6d966d974b-k8rz5 0/1 Evicted 0 109m pod/grafana-6d966d974b-q8j9w 0/1 Evicted 0 167m pod/grafana-6d966d974b-scgkn 0/1 Evicted 0 109m pod/grafana-6d966d974b-wmvcg 0/1 Evicted 0 109m pod/grafana-6d966d974b-xjw86 0/1 Evicted 0 109m pod/grafana-6d966d974b-xsvv4 0/1 Evicted 0 109m NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE service/grafana ClusterIP 10.100.234.190 <none> 80/TCP 3h31m service/kubernetes ClusterIP 10.100.0.1 <none> 443/TCP 3h57m NAME READY UP-TO-DATE AVAILABLE AGE deployment.apps/grafana 0/1 1 0 3h31m NAME DESIRED CURRENT READY AGE replicaset.apps/grafana-6d966d974b 1 1 0 3h31m
See also
kubectl get
: [all
|componentstatus | pods | apiservices | events
|event
|nodes
|replicaset
|services
|svc
|namespaces
|hpa
|secret | deployments | serviceaccounts | endpoints | daemonset | networkpolicy
],kubectl get -h
kubectl
: [cp | config | create
|delete
|edit | explain |
apply
|exec
|get
|set
|drain | uncordon | rolling-update
|rollout
|logs
|run
|auth
|label | annotate
|version
|top
|diff
|debug
|replace
|describe
|port-forward | proxy
|scale
|rollout
|api-resources
| expose deployment | expose | patch | attach | get endpoints | ~/.kube/config | kubectl logs --help | kubectl --help, kubectl-convert, kubectl autoscale, kubectl.kubernetes.io
Advertising: