UiPath Documentation
automation-suite
2023.10
false
Guía de instalación de Automation Suite en Linux
Importante :
La localización de contenidos recién publicados puede tardar entre una y dos semanas en estar disponible.

Cómo habilitar el registro de Istio

Habilite el registro de Istio para depurar el comportamiento de la puerta de enlace de entrada y diagnosticar problemas de tráfico en Automation Suite.

Para depurar Istio, es necesario habilitar el registro. Para ello, realiza los siguientes pasos:

  1. Encuentra el pod istio-ingressgateway ejecutando el siguiente comando. Copia el nombre del pod de la puerta de enlace. Debería tener este formato: istio-ingressgateway-r4mbx.
    kubectl -n istio-system get pods
    kubectl -n istio-system get pods
    
  2. Abre el shell del pod de la puerta de enlace ejecutando el siguiente comando.
    kubectl exec -it -n istio-system istio-ingressgateway-r4mbx bash
    kubectl exec -it -n istio-system istio-ingressgateway-r4mbx bash
    
  3. Habilita el registro de nivel de depuración ejecutando el siguiente comando.
    curl -X POST http://localhost:15000/logging?level=debug
    curl -X POST http://localhost:15000/logging?level=debug
    
  4. Ejecuta el siguiente comando desde un nodo 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
    

Como alternativa, para habilitar el registro de depuración para un solo servicio en lugar de toda la puerta de enlace de entrada, añade la siguiente anotación a la implementación del servicio:

sidecar.istio.io/logLevel: debug
sidecar.istio.io/logLevel: debug
Importante:

El registro de depuración aumenta significativamente el volumen de registro. Una vez que hayas terminado de solucionar problemas, deshabilita el registro de depuración o elimina la anotación, de lo contrario, el aumento del volumen de registro puede llenar el almacenamiento disponible.

¿Te ha resultado útil esta página?

Conectar

¿Necesita ayuda? Soporte(opens in new window)

¿Quiere aprender? UiPath Academy(opens in new window)

¿Tiene alguna pregunta? Foro de UiPath(opens in new window)

Manténgase actualizado