Automation Suite
2022.10
False
Image de fond de la bannière
Guide d'installation d'Automation Suite
Dernière mise à jour 24 avr. 2024

Comment activer la journalisation Istio

Pour déboguer Istio, vous devez activer la journalisation. Pour ce faire, effectuez les étapes suivantes :

  1. Recherchez le pod istio-ingressgateway en exécutant la commande suivante. Copiez le nom du pod de passerelle. Il devrait ressembler à istio-ingressgateway-r4mbx.
    kubectl -n istio-system get podskubectl -n istio-system get pods
  2. Ouvrez le shell du pod de passerelle en exécutant la commande suivante.

    kubectl exec -it -n istio-system istio-ingressgateway-r4mbx bashkubectl exec -it -n istio-system istio-ingressgateway-r4mbx bash
  3. Activez la journalisation au niveau du débogage en exécutant la commande suivante.

    curl -X POST http://localhost:15000/logging?level=debugcurl -X POST http://localhost:15000/logging?level=debug
  4. Exécutez la commande suivante à partir d'un nœud de serveur.

    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

Cette page vous a-t-elle été utile ?

Obtenez l'aide dont vous avez besoin
Formation RPA - Cours d'automatisation
Forum de la communauté UiPath
Logo Uipath blanc
Confiance et sécurité
© 2005-2024 UiPath. All rights reserved.