When running a Kubernetes job (e.g., via the Kubernetes Plugin), the job fails immediately. The following messages are observed in the job logs:
Workload Automation Agent for Kubernetes
This behavior is driven by two factors:
Kubernetes config file not found is not an error. It is a status message confirming that the agent is using an alternative authentication method (such as OAuth or Service Account tokens) rather than a local kubeconfig file.Job is active exception occurs because a job with the same name is already running or exists in the target Kubernetes namespace. Kubernetes batch/v1 API restrictions dictate that only one job with a specific name can exist in a namespace at one time. If the previous run has not been deleted or is still in an "Active" state, the new submission will fail.To resolve this issue, ensure the namespace is clear of previous job instances before starting a new one:
kubectl get jobs -n ####-namespacekubectl delete job ####-jobname -n ####-namespaceNote: