Defining your Config
Now that you have a component config base project we need to customize the
values that are passed into the controller, to do this we can take a look at
config/manager/controller_manager_config.yaml
.
controller_manager_config.yaml
apiVersion: controller-runtime.sigs.k8s.io/v1alpha1
kind: ControllerManagerConfig
metrics:
bindAddress: 127.0.0.1:8080
webhook:
port: 9443
leaderElection:
leaderElect: true
resourceName: 80807133.tutorial.kubebuilder.io
To see all the available fields you can look at the v1alpha
Controller
Runtime config ControllerManagerConfiguration