UiPath Documentation
automation-suite
2023.4
false
Guia de instalação do Automation Suite no Linux
Importante :
A tradução automática foi aplicada parcialmente neste conteúdo. A localização de um conteúdo recém-publicado pode levar de 1 a 2 semanas para ficar disponível.

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 pods
    kubectl -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 bash
    kubectl 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=debug
    curl -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"
    fi
    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"
    fi
    

Esta página foi útil?

Conectar

Precisa de ajuda? Suporte

Quer aprender? Academia UiPath

Tem perguntas? Fórum do UiPath

Fique por dentro das novidades