$ kubectl -n shop get deployment web -o yaml
apiVersion: apps/v1
kind: Deployment
metadata:
  annotations:
    deployment.kubernetes.io/revision: "2"
    kubectl.kubernetes.io/last-applied-configuration: |
      {"apiVersion":"apps/v1","kind":"Deployment","metadata":{"annotations":{},"labels":{"app":"web"},"name":"web","namespace":"shop"},"spec":{"replicas":1,"revisionHistoryLimit":5,"selector":{"matchLabels":{"app":"web"}},"strategy":{"rollingUpdate":{"maxSurge":0,"maxUnavailable":1},"type":"RollingUpdate"},"template":{"metadata":{"labels":{"app":"web"}},"spec":{"containers":[{"image":"nginx:1.29-alpine","imagePullPolicy":"IfNotPresent","name":"web","ports":[{"containerPort":8080}],"readinessProbe":{"httpGet":{"path":"/healthz","port":8080},"periodSeconds":3},"resources":{"limits":{"memory":"48Mi"},"requests":{"cpu":"10m","memory":"8Mi"}},"volumeMounts":[{"mountPath":"/usr/share/nginx/html/index.html","name":"content","subPath":"index.html"},{"mountPath":"/etc/nginx/conf.d/default.conf","name":"content","subPath":"default.conf"}]}],"volumes":[{"configMap":{"name":"web-content"},"name":"content"}]}}}}
  creationTimestamp: "2026-11-09T06:43:51Z"
  generation: 2
  labels:
    app: web
  name: web
  namespace: shop
  resourceVersion: "5227"
  uid: 75c78294-55ee-4c8a-a076-5118574cb020
spec:
  progressDeadlineSeconds: 600
  replicas: 1
  revisionHistoryLimit: 5
  selector:
    matchLabels:
      app: web
  strategy:
    rollingUpdate:
      maxSurge: 0
      maxUnavailable: 1
    type: RollingUpdate
  template:
    metadata:
      labels:
        app: web
    spec:
      containers:
      - image: nginx:1.29.99-alpine
        imagePullPolicy: IfNotPresent
        name: web
        ports:
        - containerPort: 8080
          protocol: TCP
        readinessProbe:
          failureThreshold: 3
          httpGet:
            path: /healthz
            port: 8080
            scheme: HTTP
          periodSeconds: 3
          successThreshold: 1
          timeoutSeconds: 1
        resources:
          limits:
            memory: 48Mi
          requests:
            cpu: 10m
            memory: 8Mi
        terminationMessagePath: /dev/termination-log
        terminationMessagePolicy: File
        volumeMounts:
        - mountPath: /usr/share/nginx/html/index.html
          name: content
          subPath: index.html
        - mountPath: /etc/nginx/conf.d/default.conf
          name: content
          subPath: default.conf
      dnsPolicy: ClusterFirst
      restartPolicy: Always
      schedulerName: default-scheduler
      securityContext: {}
      terminationGracePeriodSeconds: 30
      volumes:
      - configMap:
          defaultMode: 420
          name: web-content
        name: content
status:
  conditions:
  - lastTransitionTime: "2026-11-09T06:43:51Z"
    lastUpdateTime: "2026-11-09T06:43:51Z"
    message: Deployment has minimum availability.
    reason: MinimumReplicasAvailable
    status: "True"
    type: Available
  - lastTransitionTime: "2026-11-09T06:43:51Z"
    lastUpdateTime: "2026-11-09T06:44:16Z"
    message: ReplicaSet "web-77cffc9b9c" is progressing.
    reason: ReplicaSetUpdated
    status: "True"
    type: Progressing
  observedGeneration: 2
  replicas: 1
  terminatingReplicas: 0
  unavailableReplicas: 1
  updatedReplicas: 1
[exit 0]
