-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable leader election on endpoints for controllers
Support the new upstream module for leader election via a new config field and command line flag (--lock-service-name). If specified, the new style election will be used. The legacy etcd election (triggered by controllerTTL > 0) will wait to verify no endpoint object exists before competing for the etcd lease, and will step down if it detects the endpoint object is created. With these changes, the controllers can now be run as static pods on the masters and talk only to the API. This will allow them to appear in the api and be scraped by prometheus.
- Loading branch information
1 parent
5468a46
commit 9962471
Showing
14 changed files
with
319 additions
and
47 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: controllers | ||
labels: | ||
master.openshift.io/controllers: 'true' | ||
spec: | ||
containers: | ||
- name: controller | ||
image: openshift/origin:latest | ||
args: | ||
- start | ||
- master | ||
- controllers | ||
- --listen=0.0.0.0:8444 | ||
- --config=/etc/origin/master/master-config.yaml | ||
volumeMounts: | ||
- name: config | ||
mountPath: /etc/origin/master | ||
ports: | ||
- containerPort: 8444 | ||
name: https | ||
volumes: | ||
- hostPath: | ||
path: /data/src/github.com/openshift/origin/openshift.local.test/master | ||
name: config |
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
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
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
Oops, something went wrong.