Skip to content
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

ROX-16643: Set acscs-worker role #162

Merged
merged 2 commits into from
Nov 13, 2023
Merged

ROX-16643: Set acscs-worker role #162

merged 2 commits into from
Nov 13, 2023

Conversation

ludydoo
Copy link
Contributor

@ludydoo ludydoo commented Nov 13, 2023

We are going to add a worker pool for "infrastructure" workloads on prod-dp-01.
This node pool will be labeled node-role.kubernetes.io/acscs-infra. This will add a role to the node.
For other clusters, the "default" node pool will be labeled with this as well.

This will have the consequence that our strictly-worker-nodes query will now return 0 nodes for all clusters apart from prod-dp-01.

This will add a specific label for those nodes which are considered as "worker" nodes.

@ludydoo ludydoo requested a review from a team as a code owner November 13, 2023 14:00
@@ -10,7 +10,7 @@ SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]:-$0}")" &>/dev/null && pwd 2

yq eval '.spec' "${SCRIPT_DIR}"/../resources/prometheus/prometheus-rules.yaml >/tmp/prometheus-rules-test.yaml
yq eval '.spec' "${SCRIPT_DIR}"/../resources/prometheus/rhacs-recording-rules.yaml >/tmp/recording-rules-test.yaml
for f in "${SCRIPT_DIR}"/../resources/prometheus/unit_tests/*; do
for f in "${SCRIPT_DIR}"/../resources/prometheus/unit_tests/WorkerNodes*; do
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
for f in "${SCRIPT_DIR}"/../resources/prometheus/unit_tests/WorkerNodes*; do
for f in "${SCRIPT_DIR}"/../resources/prometheus/unit_tests/*; do

Copy link
Contributor

@stehessel stehessel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

need to remove the change for local testing again

@ludydoo
Copy link
Contributor Author

ludydoo commented Nov 13, 2023

@stehessel I added some changes to the strictly_worker_nodes. Because in some clusters, the worker nodes will be the same as the acscs-infra nodes, I will add a label to the "regular" worker pools node-role.kubernetes.io/acscs-worker. Adapted the queries accordingly.

@ludydoo ludydoo merged commit 9c36b02 into master Nov 13, 2023
1 check passed
@ludydoo ludydoo deleted the ROX-16643-set-worker-role branch November 13, 2023 15:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants