Skip to content

Latest commit

 

History

History
38 lines (30 loc) · 1.18 KB

logs.md

File metadata and controls

38 lines (30 loc) · 1.18 KB

Logs

Logs for PipelineRuns and TaskRuns are associated with the underlying pod.

To access these logs currently you have a few options:

  • You can get the logs from the pod e.g. using kubectl:

    # Get the name of the pod from the instance of the TaskRun
    kubectl get taskruns -o yaml | grep podName
    
    # Or get the pod name from the PipelineRun
    kubectl get pipelineruns -o yaml | grep podName
    
    # Use kubectl to access the logs for all containers in the pod
    kubectl logs $POD_NAME --all-containers
    
    # Or get the logs from a specific container in the pod
    kubectl logs $POD_NAME -c $CONTAINER_NAME
    kubectl logs $POD_NAME -c step-run-kubectl
  • You can use the tkn cli tool to access logs

  • You can use the dashboard web interface to access logs

  • You can setup an external service to consume and display logs, for example Elasticsearch, Beats and Kibana