You are configuring a service check that needs to be ignored if the node is in maintenance mode. What is the correct approach?
The maintenance command puts the node into a state where health checks are ignored.
Why this answer
Maintenance mode stops health checks from affecting the service's passing/failing status.