-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run webhook only on master nodes (#361)
Currently all instances of the handler on all nodes serve as a webhook. That includes both masters and workers. Since workers are expected to be less stable than masters this commit changes the behaviour to run webhook servers only on masters. Since the webhooks are behind a Service we need to deploy two sets of daemonsets, one will run only on workers, one only on masters. The masters 'name' label would be selected in the Service selector. Also, a RUN_WEBHOOK_SERVER ="" env variable was added to the master pods. In case the env var exists, the handler won't register+run the webhook. Signed-off-by: Alona Kaplan <[email protected]>
- Loading branch information
1 parent
20c3530
commit 176f29a
Showing
3 changed files
with
109 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters