-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added the running rosa spots ability #349
base: master
Are you sure you want to change the base?
Conversation
@krishvoor ptal. 👋 |
c4bdeba
to
0279cb3
Compare
if [ "$SPOT_POOL_READY" == "true" ]; then | ||
# Node count is number of workers pool + 3 infra | ||
NODES_COUNT=$(($2+3)) | ||
else |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Which condition needs NODE_COUNT=$2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Before spot_pool_ready, I need to check whether the SPOT nodes are ready or not. So, NODES_COUNT =$2 represent the number passing to the wait_for_nodes_ready
if [ "$SPOT_POOL_READY" == "true" ]; then | ||
_wait_for_nodes_ready $1 ${COMPUTE_WORKERS_NUMBER} "node-role.kubernetes.io/worker" | ||
else | ||
DEFAULT_WORKER_NODES=3 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shouldn't the default be always openshift_worker_count
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
openshift_worker_count=9
The workflow will be,
default cluster= 3(M+W-I)
We already added 3 nodes, the remaining 6 nodes would be SPOT nodes.
So I added the DEFAULT_WORKER_NODES=3 to verify that 3 nodes in ready state.
Type of change
Description
Span the Rosa worker nodes with the help of machinepools by creating the default cluster with 3(M+W+I).
The remaining Spot worker nodes are WorkerNodes - 3
Related Tickets & Documents
Checklist before requesting a review
Testing
Ran the airflow cluster by creating a playground on the sailplane cluster.