Skip to content
The Chat Archive
gpt-3.5-turbo-0613· OpenAI WildChat-4.8M (AI2)

how do I filter 0/1 completed jobs with kubectl

  1. User

    how do I filter 0/1 completed jobs with kubectl

  2. Assistant

    To filter 0/1 completed jobs with kubectl, you can use the following command:

    kubectl get jobs --field-selector=status.successful!=1
    

    This command uses the --field-selector flag to filter out jobs where the status.successful field is not equal to 1. By specifying !=1, only jobs that have not completed successfully (0/1 completed) will be displayed.