Change the resource request and limit for the katalon worker (kubernetes job)

Hi

The Kubernetes worker where the Katalon tests are running doesn’t have enough CPU and Memory. How can we increase the CPU and Mem request of these workers.

2 Likes

Find your current Kubernetes Job/Deployment YAML or Helm chart for the Katalon worker.

Edit the resources.requests and resources.limits section with your desired CPU and memory values.

Apply the changes with kubectl apply -f <your-yaml-file>.yaml.

Update the resource specifications in your Kubernetes manifest (YAML) file for that Job or Deployment.
Edit the container specification to set new values for resources.requests and resources.limits under the spec.template.spec.containers section.

Example:

apiVersion: batch/v1
kind: Job
metadata:
name: katalon-worker
spec:
template:
spec:
containers:
- name: katalon-container
image: katalonstudio/katalon
resources:
requests:
memory: “2Gi” # Minimum memory this pod will get
cpu: “1” # Minimum CPUs (1 core)
limits:
memory: “4Gi” # Maximum memory this pod can use
cpu: “2” # Maximum CPUs (2 cores)
restartPolicy: Never

Hi @it15,

Welcome to our community. It is an interesting problem, welcome every expert with Kubernetes to jump in

1 Like

Hi @dineshh
We are using the katalon studio testops. I dont see any kubernetes worker job configured in katalon namespace. Also, UI also has no option to configure request and limit. Is the job getting created dynamically by the katalon studio?

1 Like

TestOps creates jobs dynamically for each test execution in Kubernetes, and resource settings cannot be changed via the UI at runtime—advanced customisations be handled at setup or infrastructure level

1 Like

@it15

You should raise an official support request to Katalon if you are a paying licensee.

1 Like