-
Notifications
You must be signed in to change notification settings - Fork 517
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
Add control-plane toleration for Prometheus for Windows tests #2075
Add control-plane toleration for Prometheus for Windows tests #2075
Conversation
Hi @oprinmarius. Thanks for your PR. I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with Once the patch is verified, the new status will be reflected by the I understand the commands that are listed here. Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. |
/ok-to-test |
clusterloader2/pkg/prometheus/manifests/prometheus-prometheus.yaml
Outdated
Show resolved
Hide resolved
clusterloader2/pkg/prometheus/manifests/0prometheus-operator-deployment.yaml
Outdated
Show resolved
Hide resolved
8dc1ba6
to
c737fd1
Compare
/lgtm |
@@ -1,5 +1,6 @@ | |||
{{$PROMETHEUS_SCRAPE_KUBELETS := DefaultParam .PROMETHEUS_SCRAPE_KUBELETS false}} | |||
{{$PROMETHEUS_SCRAPE_WINDOWS_NODES := DefaultParam .PROMETHEUS_SCRAPE_WINDOWS_NODES false}} | |||
{{$PROMETHEUS_SCRAPE_WINDOWS_NODE_EXPORTER := DefaultParam .PROMETHEUS_SCRAPE_WINDOWS_NODE_EXPORTER false}} |
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.
can we resuse the PROMETHEUS_SCRAPE_WINDOWS_NODES
? feels awkward to have to different windows scrape settings
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.
PROMETHEUS_SCRAPE_WINDOWS_NODE_EXPORTER is the variable we introduced when we switched to use Windows Exporter as a HostProcess and we need to use it for Azure jobs
PROMETHEUS_SCRAPE_WINDOWS_NODES variable is used by the GCE jobs to install WMI exporter on the nodes via gcloud ssh command
I used the new PROMETHEUS_SCRAPE_WINDOWS_NODE_EXPORTER variable to add taints to the control-plane nodes and to remove storage configuration for Prometheus so I don't alter the other jobs that might be running Windows tests in GCE
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.
thanks for the clarification. If we can eventually remove the GCE specific code and use just the hostprocess install method, we can eventually drop PROMETHEUS_SCRAPE_WINDOWS_NODES. My understanding is that GCE doesn't support hpc currently but will in the future.
/test soak-tests-capz-windows-2019 |
FYI using this PR as a guinea pig to test these changes: https://github.com/kubernetes/test-infra/pull/26397/files#r883159740 |
c737fd1
to
4f78878
Compare
/lgtm |
/lgtm |
4f78878
to
0b20619
Compare
/lgtm |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jsturtevant, marosset, mborsz, oprinmarius The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind feature
What this PR does / why we need it:
Adds control-plane tolerations for Prometheus when running Windows Tests in Azure
Which issue(s) this PR fixes:
part of #2035
Special notes for your reviewer:
Windows Soak tests running in Azure do not spawn Linux worker nodes.
Prometheus service has to be scheduled on the control-plane nodes.
Does this PR introduce a user-facing change?:
Additional documentation e.g., KEPs (Kubernetes Enhancement Proposals), usage docs, etc.: