github.com/1aal/kubeblocks@v0.0.0-20231107070852-e1c03e598921/config/manager/controller_manager_config.yaml (about)

     1  apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
     2  kind: ControllerManagerConfig
     3  health:
     4    healthProbeBindAddress: :8081
     5  metrics:
     6    bindAddress: 127.0.0.1:8080
     7  webhook:
     8    port: 9443
     9  leaderElection:
    10    leaderElect: true
    11    resourceName: 001c317f.kubeblocks.io
    12  # leaderElectionReleaseOnCancel defines if the leader should step down volume
    13  # when the Manager ends. This requires the binary to immediately end when the
    14  # Manager is stopped, otherwise, this setting is unsafe. Setting this significantly
    15  # speeds up voluntary leader transitions as the new leader don't have to wait
    16  # LeaseDuration time first.
    17  # In the default scaffold provided, the program ends immediately after
    18  # the manager stops, so would be fine to enable this option. However,
    19  # if you are doing or is intended to do any operation such as perform cleanups
    20  # after the manager stops then its usage might be unsafe.
    21  # leaderElectionReleaseOnCancel: true