Anthos Service Mesh로 워크로드 트래픽 마이그레이션

이 프로세스 단계에서는 변경사항을 출시하는 방법을 선택할 수 있습니다. Anthos Service Mesh로 마이그레이션하려는 초기 트래픽 양을 지정하고 점진적으로 출시를 100%까지 늘릴 수 있습니다.

시작하기 전에

Anthos Service Mesh로 모든 워크로드 트래픽 마이그레이션

이 섹션에서는 마이그레이션 스크립트를 사용하여 기존 모든 트래픽을 Anthos Service Mesh로 마이그레이션합니다.

  1. 다음 명령어를 실행하여 마이그레이션하려는 트래픽 백분율을 설정합니다.

    ./migration-addon.sh --command migrate-traffic TRAFFIC_PERCENTAGE
    

    TRAFFIC_PERCENTAGE를 Anthos Service Mesh 인그레스로 전송하려는 트래픽 백분율로 바꿉니다. 유효한 값은 0, 10, 20, 30, 40, 50, 60, 70, 80, 90, 100입니다.

    이 단계에 문제가 있거나 점진적 출시를 수행하려면 100%에 도달할 때까지 이 마이그레이션 스크립트 명령어를 여러 번 다시 실행할 수 있습니다.

    예를 들어 트래픽의 10%를 마이그레이션하도록 선택한 경우 프로세스 중 터미널 출력이 다음과 유사하게 표시됩니다.

    In this step, 10% of traffic from the previously installed
    version of Istio is migrated to the Anthos Service Mesh ingress.
    
    Setting the number of replicas of Istio ingress to 9,
    and the number of replicas of Anthos Service Mesh ingress to 1
    deployment.apps/istio-ingress patched
    
    Waiting for all istio-ingress pods to be ready
    
    All istio-ingress pods are ready.
    deployment.apps/istio-ingressgateway patched
    
    Waiting for all istio-ingressgateway pods to be ready
    
    All istio-ingressgateway pods are ready.
    
    10% traffic has been migrated to Anthos Service Mesh ingress
    
  2. Google Cloud 콘솔에서 서비스의 트래픽을 모니터링할 수 있습니다.

    Knative serving으로 이동

다음 단계

업그레이드 완료 및 삭제 작업 수행

롤백

위 단계를 통해 수행한 변경사항을 롤백해야 할 경우 마이그레이션 스크립트를 사용하여 Anthos Service Mesh 인그레스에 대한 트래픽 백분율을 다시 0으로 설정할 수 있습니다.

./migration-addon.sh --command migrate-traffic 0