Loading
Salesforce에서 이메일을 보내기 위해서는 도메인 인증이 필요합니다.더 많이 읽기

How to live tail logs from all pods of a Runtime Fabric (RTF) app

게시 일자: Mar 2, 2024
과업

GOAL

You are debugging your app in RTF and need to live tail the logs of the app from all pods.
단계
  1. Please follow the instructions here for logging into the Ops Center. Alternatively, you can skip steps 1-3 by SSH-ing into the controller node directly.
  2. On the left-hand side, choose Servers
  3. Choose the server entry for the controller node and choose to login as root in order to start a SSH terminal.
  4. Please run the following command:
    sudo gravity enter
  5. Please run the following command: 
    kubectl get pods --all-namespaces
    You should see an output like this: 
    NAMESPACE NAME READY STATUS RESTARTS AGE
    a111111111-ed53-4d45-bfc1-c873hfhfjfhe first-app-here-685bd87fd8-jfnrw 2/2 Running 0 4d20h
    a111111111-ed53-4d45-bfc1-c873hfhfjfhe first-app-here-698ffdf67-zr6f9 2/2 Running 0 25d
    a111111111-ed53-4d45-bfc1-c873hfhfjfhe second-app-name-757bf4cf85-fxdqc 2/2 Running 0 25h
    a111111111-ed53-4d45-bfc1-c873hfhfjfhe second-app-name--6967996b4-h8fv7 2/2 Running 0 24h
    kube-system coredns-6tnjl 1/1 Running 0 44d
    kube-system coredns-grwbz 1/1 Running 0 44d
    kube-system coredns-qvt7l 1/1 Running 0 44d
  6. Find the name of the app in question. In this case, we will look for the app named "first-app-here". It will have two entries, each with several alphanumeric characters after it. Each entry represents 1 pod of that app.
  7. Find the namespace of the app in question. For "first-app-here", it will be the column on the far left. The value is "a111111111-ed53-4d45-bfc1-c873hfhfjfhe"
  8. Run the following command to tail the logs from all pods of the app "first-app-here":
    kubectl logs deployment/first-app-here --follow --all-containers=true --namespace=a111111111-ed53-4d45-bfc1-c873hfhfjfh​​​
    
  9. You should now be able to live tail the logs.

Refer : Here is another article to locate and view application logs: How to locate the Mule Application Logfile on Runtime Fabric
Knowledge 기사 번호

001116981

 
로드 중
Salesforce Help | Article