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

Fix multi-node K8s deployment script #1133

Merged
merged 2 commits into from
Mar 23, 2022

Conversation

supertetelman
Copy link
Collaborator

In the recent upgrade to support GPU Operator end-to-end I introduced a bug in the HA K8s deployments. This resulted in DCGM-exporter not being deployed.

This PR simply fixes that script bug and also causes the test-monitoring.sh script to fail a bit faster when an error does occur.

@supertetelman supertetelman added the next-release Critical for the next release label Mar 23, 2022
# # GPU Device Plugin is installed into kube-system, GPU Operator installs it into gpu-operator-resources
plugin_namespace=$( kubectl get pods -A -l app.kubernetes.io/instance=nvidia-device-plugin --no-headers --no-headers -o custom-columns=NAMESPACE:.metadata.namespace)
# # GPU Device Plugin is installed into kube-system, GPU Operator installs it into gpu-operator-resources, use uniq for HA K8s clusters
plugin_namespace=$( kubectl get pods -A -l app.kubernetes.io/instance=nvidia-device-plugin --no-headers --no-headers -o custom-columns=NAMESPACE:.metadata.namespace | uniq)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Ran into this bug where kubectl was reporting multiple pods in HA clusters causing the dcgm-exporter install not to trigger.

@supertetelman supertetelman merged commit 0e1ab1f into NVIDIA:master Mar 23, 2022
@supertetelman supertetelman deleted the jenkins-bugfix branch March 23, 2022 18:53
@ajdecon ajdecon mentioned this pull request Apr 26, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
next-release Critical for the next release
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants