Replies: 1 comment
-
Variables can be used in your deployments (based on the work queue you are deploying to) "resources": {
"limits": {
"cpu": "{{ cpu_limit }}",
"memory": "{{ memory_limit }}"
},
"requests": {
"cpu": "{{ cpu_request }}",
"memory": "{{ memory_request }}"
} As an example for a deployment in a lower environment I have lower memory limits than production Dev deployment in work_pool:
name: k8s-work-pool
work_queue_name: dev-k8s
job_variables:
image: "{{ build-image.image }}"
memory_request: "1Gi"
memory_limit: "1Gi" Prod deployment in work_pool:
name: k8s-work-pool
work_queue_name: prod-k8s
job_variables:
image: "{{ build-image.image }}"
memory_request: "6Gi"
memory_limit: "8Gi" These variables make the base job template flexible |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
every work queues have its own config
Beta Was this translation helpful? Give feedback.
All reactions