10. 배포된 컨테이너의 nginx 버전을 curl -I로 확인합니다. nginx의 버전이 1.16.0이므로 상태가 되돌려졌음을 알 수 있습니다.

    [root@m-k8s ~]# curl -I --silent 172.16.132.10 | grep Server
    Server: nginx/1.16.0

    11. rollout status 명령으로 변경이 정상적으로 적용됐는지 확인합니다.

    [root@m-k8s ~]# kubectl rollout status deployment rollout-nginx
    deployment "rollout-nginx" successfully rolled out

    12. describe로 현재 디플로이먼트 상태도 세부적으로 점검하고 넘어갑니다.

    [root@m-k8s ~]# kubectl describe deployment rollout-nginx
    Name:                   rollout-nginx
    [중략]
      Containers:
       nginx:
        Image:        nginx:1.16.0
        Port:         <none>
        Host Port:    <none>
        Environment:  <none>
        Mounts:       <none>
      Volumes:        <none>
    Conditions:
      Type           Status  Reason
      ----           ------  ------
      Available      True    MinimumReplicasAvailable
      Progressing    True    NewReplicaSetAvailable
    OldReplicaSets:  <none>
    NewReplicaSet:   rollout-nginx-7598b44f45 (3/3 replicas created) 
    [생략]
    신간 소식 구독하기
    뉴스레터에 가입하시고 이메일로 신간 소식을 받아 보세요.