ABOUT ME

-

Today
-
Yesterday
-
Total
-
  • istio 현재 설정 내용 확인하기
    Envoy & Istio 2019. 8. 23. 09:00
    반응형

    https://github.com/istio/istio/releases 에서 자신의 환경에 맞는 파일을 다운받아서 압축을 풀면 bin/istioctl 명령어가 있어서 istio 상태를 파악하는데 사용할 수 있다.

    ./bin/istioctl proxy-status
    NAME                                                   CDS        LDS        EDS               RDS          PILOT                            VERSION
    istio-egressgateway-68d9cfdd4-vkff8.istio-system       SYNCED     SYNCED     SYNCED (100%)     NOT SENT     istio-pilot-56b4dd7bd7-h5mtr     1.1.3
    istio-ingressgateway-7fbf7bcf45-vrmp5.istio-system     SYNCED     SYNCED     SYNCED (100%)     SYNCED       istio-pilot-56b4dd7bd7-h5mtr     1.1.3
    nginx-57867cc648-vvg62.default                         SYNCED     SYNCED     SYNCED (50%)      SYNCED       istio-pilot-56b4dd7bd7-h5mtr     1.1.3
    test-6789844dc-thqnb.default                           SYNCED     SYNCED     SYNCED (50%)      SYNCED       istio-pilot-56b4dd7bd7-h5mtr     1.1.3

     

    개별 pod의 설정 내용은 proxy-config 명령으로 확인할 수 있다.

    ./bin/istioctl proxy-config clusters -n istio-system istio-ingressgateway-7fbf7bcf45-vrmp5.istio-system
    SERVICE FQDN                                                               PORT      SUBSET     DIRECTION     TYPE
    BlackHoleCluster                                                           -         -          -             STATIC
    PassthroughCluster                                                         -         -          -             ORIGINAL_DST
    compose-api.docker.svc.cluster.local                                       443       -          outbound      EDS
    grafana.istio-system.svc.cluster.local                                     3000      -          outbound      EDS
    istio-citadel.istio-system.svc.cluster.local                               8060      -          outbound      EDS
    istio-citadel.istio-system.svc.cluster.local                               15014     -          outbound      EDS
    istio-egressgateway.istio-system.svc.cluster.local                         80        -          outbound      EDS

     

    pod의 열려 있는 포트는 proxy-config listener 명령으로 확인 가능하다.

    ./bin/istioctl proxy-config listener istio-ingressgateway-7fbf7bcf45-vrmp5.istio-system
    
    ADDRESS     PORT      TYPE
    0.0.0.0     80        HTTP
    0.0.0.0     15090     HTTP

     

    proxy-config route 명령으로 라우팅 정보를 확인할 수 있다.

    ./bin/istioctl proxy-config route istio-ingressgateway-7fbf7bcf45-vrmp5.istio-system
    NOTE: This output only contains routes loaded via RDS.
    NAME        VIRTUAL HOSTS
    http.80     1
                1
    
    ./bin/istioctl proxy-config route istio-ingressgateway-7fbf7bcf45-vrmp5.istio-system --name http.80 -o json

     

    반응형

    댓글

Designed by Tistory.