Difference between revisions of "Kubectl describe deployment"

From wikieduonline
Jump to navigation Jump to search
 
(14 intermediate revisions by 2 users not shown)
Line 2: Line 2:
  
 
  [[kubectl describe]] deployment
 
  [[kubectl describe]] deployment
 +
[[kubectl describe]] deployments
 +
kubectl describe deployment -n yournamespace
 
  .../....
 
  .../....
  
 +
[[kubectl describe deployment grafana]]
 +
[[kubectl describe deployment example]]
 +
 +
[[kubectl describe deployment -A]]
 +
 +
[[kubectl describe deployment -A]] | grep "[[StrategyType]]"
 +
StrategyType:      [[RollingUpdate]]
 +
StrategyType:      [[Recreate]]
 +
  
 
  [[kubectl describe]] deployment | egrep -w "Port|Ports" | grep -v Host
 
  [[kubectl describe]] deployment | egrep -w "Port|Ports" | grep -v Host
 +
 +
== Examples ==
 +
{{kubectl describe deployment kubectl create deploy nginx}}
  
 
== Related ==
 
== Related ==
* <code>[[kubect-proxy]]</code>
+
* <code>[[kubectl proxy]]</code>
 +
* [[CKA v1.23 Understand deployments and how to perform rolling update and rollbacks]]
 +
* [[kind: Ingress]]
  
 
== See also ==
 
== See also ==
Line 14: Line 30:
 
* {{kubectl describe}}
 
* {{kubectl describe}}
  
[[Category:K8s]]
+
[[Category:Kubernetes]]

Latest revision as of 15:22, 15 February 2024

kubectl describe deployment
kubectl describe deployments
kubectl describe deployment -n yournamespace
.../....
kubectl describe deployment grafana
kubectl describe deployment example
kubectl describe deployment -A
kubectl describe deployment -A | grep "StrategyType"
StrategyType:       RollingUpdate
StrategyType:       Recreate

kubectl describe deployment | egrep -w "Port|Ports" | grep -v Host

Examples[edit]

 kubectl describe deployment my-web-deployment-v1
Name:                   my-web-deployment-v1
Namespace:              default
CreationTimestamp:      Thu, 15 Feb 2024 16:12:09 +0100
Labels:                 app=my-web-deployment-v1
Annotations:            deployment.kubernetes.io/revision: 1
Selector:               app=my-web-deployment-v1
Replicas:               1 desired | 1 updated | 1 total | 1 available | 0 unavailable
StrategyType:           RollingUpdate
MinReadySeconds:        0
RollingUpdateStrategy:  25% max unavailable, 25% max surge
Pod Template:
  Labels:  app=my-web-deployment-v1
  Containers:
   nginx:
    Image:        nginx
    Port:         80/TCP
    Host Port:    0/TCP
    Environment:  <none>
    Mounts:       <none>
  Volumes:        <none>
Conditions:
  Type           Status  Reason
  ----           ------  ------
  Available      True    MinimumReplicasAvailable
  Progressing    True    NewReplicaSetAvailable
OldReplicaSets:  <none>
NewReplicaSet:   my-web-deployment-v1-8bd6566ff (1/1 replicas created)
Events:
  Type    Reason             Age    From                   Message
  ----    ------             ----   ----                   -------
  Normal  ScalingReplicaSet  2m31s  deployment-controller  Scaled up replica set my-web-deployment-v1-8bd6566ff to 1

Related[edit]

See also[edit]

Advertising: