Automation Suite
2023.10
False
Bannerhintergrundbild
Automation Suite unter Linux – Installationsanleitung
Letzte Aktualisierung 19. April 2024

So können Sie die Istio-Protokollierung aktivieren

Um Istio zu debuggen, müssen Sie die Protokollierung aktivieren. Führen Sie dazu die folgenden Schritte aus:

  1. Suchen Sie den Pod istio-ingressgateway, indem Sie den folgenden Befehl ausführen. Kopieren Sie den Gateway-Pod-Namen. Er sollte ungefähr so aussehen wie istio-ingressgateway-r4mbx.
    kubectl -n istio-system get podskubectl -n istio-system get pods
  2. Öffnen Sie die Gateway-Pod-Shell, indem Sie den folgenden Befehl ausführen.

    kubectl exec -it -n istio-system istio-ingressgateway-r4mbx bashkubectl exec -it -n istio-system istio-ingressgateway-r4mbx bash
  3. Aktivieren Sie die Protokollierung auf Debugebene, indem Sie den folgenden Befehl ausführen.

    curl -X POST http://localhost:15000/logging?level=debugcurl -X POST http://localhost:15000/logging?level=debug
  4. Führen Sie den folgenden Befehl von einem Serverknoten aus.

    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

War diese Seite hilfreich?

Hilfe erhalten
RPA lernen – Automatisierungskurse
UiPath Community-Forum
UiPath Logo weiß
Vertrauen und Sicherheit
© 2005-2024 UiPath. All rights reserved.