Reputation: 196
I set up Gitlab and Gitlab-CI on a k8s cluster in AWS. I have jobs that use a lot of resources. I want to run these jobs on specific instances in AWS. How can this be done?
Upvotes: 0
Views: 1963
Reputation: 6191
You need to add a node selector which enable you to assign pods on specific nodes
kubectl label nodes <node-name> gitlab=true
node_selector
: [runners.kubernetes.node_selector]
gitlab = "true"
Check a more complete example of config.toml
on gitlab website.
Refer the tag of your runner in your .gitlab-ci.yml
job:
tags:
- big_server
Upvotes: 2