kubectl describe deployment example

From wikieduonline
Jump to navigation Jump to search

kubectl describe deployment -n yournamespace yourdeployement
Name:                   yourdeployment
Namespace:              yournamespace
CreationTimestamp:      Mon, 16 Oct 2023 15:23:17 +0200
Labels:                 workload.user.cattle.io/workloadselector=apps.deploymet yournamesapce-deployment
Annotations:            deployment.kubernetes.io/revision: 2
Selector:               workload.user.cattle.io/workloadselector=apps.deployment-yournamesapce-deployment
Replicas:               1 desired | 1 updated | 1 total | 0 available | 1 unavailable
StrategyType:           RollingUpdate
MinReadySeconds:        0
RollingUpdateStrategy:  25% max unavailable, 25% max surge
Pod Template:
 Labels:       app=yournamesapce
               workload.user.cattle.io/workloadselector=apps.deployment-yournamesapce-deployment
 Annotations:  cattle.io/timestamp: 2023-12-13T15:24:17Z
 Containers:
  prod-container:
   Image:      registry.eu.se.com/sesitdev/yourimage:latest
   Port:       80/TCP
   Host Port:  0/TCP
   Limits:
     cpu:     512m
     memory:  256Mi
   Requests:
     cpu:        128m
     memory:     128Mi
   Environment:  <none>
   Mounts:
     /app/dir1 from vol-123 (rw)
     /app/dir2 from vol-123 (rw)
     /app/dir3 from vol-123 (rw)
 Volumes:
  myvol-1:
   Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
   ClaimName:  myclaim1
   ReadOnly:   false
  myvol2:
   Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
   ClaimName:  myclaim2
   ReadOnly:   false
  myvol3:
   Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
   ClaimName:  myclaim3
   ReadOnly:   false
Conditions:
 Type           Status  Reason
 ----           ------  ------
 Progressing    True    NewReplicaSetAvailable
 Available      False   MinimumReplicasUnavailable
OldReplicaSets:  deployment-123 (0/0 replicas created)
NewReplicaSet:   deployment-12345 (1/1 replicas created)
Events:          <none>


kubectl describe deployment

Advertising: