Skip to main content

configuration

Configuration

Currently, Steward allows customization using CLI flags for the manager subcommand.

Available flags are the following:

FlagUsageDefault
--metrics-bind-addressThe address the metric endpoint binds to.:8080
--health-probe-bind-addressThe address the probe endpoint binds to.:8081
--leader-electEnable leader election for controller manager. Enabling this will ensure there is only one active controller manager.true
--tmp-directoryDirectory which will be used to work with temporary files./tmp/steward
--kine-imageContainer image along with tag to use for the Kine sidecar container (used only if etcd-storage-type is set to one of kine strategies).rancher/kine:v0.11.10-amd64
--datastoreThe default DataStore that should be used by Steward to setup the required storage.etcd
--migrate-imageSpecify the container image to launch when a TenantControlPlane is migrated to a new datastore.migrate-image
--max-concurrent-tcp-reconcilesSpecify the number of workers for the Tenant Control Plane controller (beware of CPU consumption).1
--pod-namespaceThe Kubernetes Namespace on which the Operator is running in, required for the TenantControlPlane migration jobs.os.Getenv("POD_NAMESPACE")
--webhook-service-nameThe Steward webhook server Service name which is used to get validation webhooks, required for the TenantControlPlane migration jobs.steward-webhook-service
--serviceaccount-nameThe Kubernetes ServiceAccount used by the Operator, required for the TenantControlPlane migration jobs.os.Getenv("SERVICE_ACCOUNT")
--webhook-ca-pathPath to the Manager webhook server CA, required for the TenantControlPlane migration jobs./tmp/k8s-webhook-server/serving-certs/ca.crt
--controller-reconcile-timeoutThe reconciliation request timeout before the controller withdraw the external resource calls, such as dealing with the Datastore, or the Tenant Control Plane API endpoint.30s
--cache-resync-periodThe controller-runtime.Manager cache resync period.10h
--zap-develDevelopment Mode (encoder=consoleEncoder,logLevel=Debug,stackTraceLevel=Warn). Production Mode (encoder=jsonEncoder,logLevel=Info,stackTraceLevel=Error).true
--zap-encoderZap log encoding, one of 'json' or 'console'console
--zap-log-levelZap Level to configure the verbosity of logging. Can be one of 'debug', 'info', 'error', or any integer value > 0 which corresponds to custom debug levels of increasing verbosityinfo
--zap-stacktrace-levelZap Level at and above which stacktraces are captured (one of 'info', 'error', 'panic').info
--zap-time-encodingZap time encoding (one of 'epoch', 'millis', 'nano', 'iso8601', 'rfc3339' or 'rfc3339nano')epoch