Skip to content

Commit a881de9

Browse files
committed
baremetal: enable leader election for bmo
1 parent 210f427 commit a881de9

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

data/data/bootstrap/baremetal/files/etc/containers/systemd/metal3-baremetal-operator.container

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ After=network-online.target ironic-volume.service build-ironic-env.service image
88
[Container]
99
ContainerName=baremetal-operator
1010
Image=$METAL3_BAREMETAL_OPERATOR_IMAGE
11-
Exec=/baremetal-operator -build-preprov-image -webhook-port 0
11+
Exec=/baremetal-operator -build-preprov-image -webhook-port 0 -enable-leader-election -namespace openshift-machine-api
1212
Network=host
1313
Volume=${AUTH_DIR}:/auth:z,ro
1414
Volume=/opt/openshift:/opt/openshift:z,ro
@@ -19,6 +19,9 @@ Environment="IRONIC_KERNEL_PARAMS=${IRONIC_KERNEL_PARAMS}"
1919
Environment="HTTP_PORT=${HTTP_PORT}"
2020
Environment="IRONIC_ENDPOINT=${IRONIC_ENDPOINT}"
2121
Environment="IRONIC_EXTERNAL_URL_V6=${IRONIC_EXTERNAL_URL_V6}"
22+
Environment="LEASE_DURATION_SECONDS=137"
23+
Environment="RENEW_DEADLINE_SECONDS=107"
24+
Environment="RETRY_PERIOD_SECONDS=26"
2225

2326
[Service]
2427
EnvironmentFile=/etc/metal3.env

0 commit comments

Comments
 (0)