Automation Suite
2022.4
falso
Imagem de fundo do banner
Guia de instalação do Automation Suite
Última atualização 24 de abr de 2024

Como habilitar o registro em log do Istio

Para depurar o Istio, você precisa habilitar o registro em log. Para fazê-lo, execute as seguintes etapas:

  1. Encontre o pod istio-ingressgateway executando o seguinte comando. Copie o nome do pod do gateway. Deve ser algo como istio-ingressgateway-r4mbx.
    kubectl -n istio-system get podskubectl -n istio-system get pods
  2. Abra o shell do pod do gateway executando o seguinte comando.

    kubectl exec -it -n istio-system istio-ingressgateway-r4mbx bashkubectl exec -it -n istio-system istio-ingressgateway-r4mbx bash
  3. Habilite o registro em log de depuração executando o seguinte comando.

    curl -X POST http://localhost:15000/logging?level=debugcurl -X POST http://localhost:15000/logging?level=debug
  4. Execute o comando a seguir a partir de um nó de servidor.

    istioctl_bin=$(find /var/lib/rancher/rke2/ -name "istioctl" -type f -perm -u+x   -print -quit)
    if [[ -n ${istioctl_bin} ]]
    then
    echo "istioctl bin found"
      kubectl -n istio-system get cm istio-installer-base -o go-template='{{ index .data "istio-base.yaml" }}'  > istio-base.yaml
      kubectl -n istio-system get cm istio-installer-overlay  -o go-template='{{ index .data "overlay-config.yaml" }}'  > overlay-config.yaml 
      ${istioctl_bin} -i istio-system install -y -f istio-base.yaml -f overlay-config.yaml --set meshConfig.accessLogFile=/dev/stdout --set meshConfig.accessLogEncoding=JSON 
    else
      echo "istioctl bin not found"
    fiistioctl_bin=$(find /var/lib/rancher/rke2/ -name "istioctl" -type f -perm -u+x   -print -quit)
    if [[ -n ${istioctl_bin} ]]
    then
    echo "istioctl bin found"
      kubectl -n istio-system get cm istio-installer-base -o go-template='{{ index .data "istio-base.yaml" }}'  > istio-base.yaml
      kubectl -n istio-system get cm istio-installer-overlay  -o go-template='{{ index .data "overlay-config.yaml" }}'  > overlay-config.yaml 
      ${istioctl_bin} -i istio-system install -y -f istio-base.yaml -f overlay-config.yaml --set meshConfig.accessLogFile=/dev/stdout --set meshConfig.accessLogEncoding=JSON 
    else
      echo "istioctl bin not found"
    fi

Was this page helpful?

Obtenha a ajuda que você precisa
Aprendendo RPA - Cursos de automação
Fórum da comunidade da Uipath
Logotipo branco da Uipath
Confiança e segurança
© 2005-2024 UiPath. All rights reserved.