Difference between revisions of "Kubectl get deployment"

From wikieduonline
Jump to navigation Jump to search
Tags: Mobile web edit, Mobile edit
 
(14 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Draft}}
 
 
{{lowercase}}
 
{{lowercase}}
  
  TOMERGE [[kubectl get deployments]]
+
  [[kubectl get deployments -A]]
 
+
[[kubectl get deployments -o json -A]]
 
  [[kubectl get]] deployment
 
  [[kubectl get]] deployment
 +
[[kubectl get deploy]]
 +
[[kubectl get deployments --help]]
  
 
  kubectl get [[deployments]]
 
  kubectl get [[deployments]]
Line 20: Line 21:
 
  metrics-server                    1/1    1            1          28h
 
  metrics-server                    1/1    1            1          28h
 
  my-release-kubernetes-dashboard  1/1    1            1          28h
 
  my-release-kubernetes-dashboard  1/1    1            1          28h
 +
 +
[[kubectl get deployments -o json grafana]]
 +
 +
[[kubectl get deploy -w]] --namespace default -l [[app.kubernetes.io/name]]=kube-prometheus- operator,app.kubernetes.io/instance=prometheus
  
 
== Related ==
 
== Related ==
 
* <code>[[kubectl delete]] [[deployments]] --all</code>
 
* <code>[[kubectl delete]] [[deployments]] --all</code>
* [[kubectl scale deployment]]
+
* <code>[[kubectl scale deployment]]</code>
 +
* <code>[[kubectl get pods]]</code>
 +
* <code>[[kubectl get deployments --help]]</code>
 +
* <code>[[kubectl rollout restart]]</code>
  
 
== See also ==
 
== See also ==
* {{kubectl get}}
+
* {{kubectl deployments}}
 
* {{Kubernetes deployments}}
 
* {{Kubernetes deployments}}
  
 
[[Category:Kubectl]]
 
[[Category:Kubectl]]

Latest revision as of 06:26, 30 March 2023

kubectl get deployments -A
kubectl get deployments -o json -A
kubectl get deployment
kubectl get deploy
kubectl get deployments --help
kubectl get deployments
No resources found in default namespace.
kubectl get deployment metrics-server -n kube-system
Error from server (NotFound): deployments.apps "metrics-server" not found
kubectl get deployment metrics-server
NAME             READY   UP-TO-DATE   AVAILABLE   AGE
metrics-server   1/1     1            1           2d4h
kubectl get deployment
NAME                              READY   UP-TO-DATE   AVAILABLE   AGE
metrics-server                    1/1     1            1           28h
my-release-kubernetes-dashboard   1/1     1            1           28h
kubectl get deployments -o json grafana
kubectl get deploy -w --namespace default -l app.kubernetes.io/name=kube-prometheus- operator,app.kubernetes.io/instance=prometheus

Related[edit]

See also[edit]

Advertising: