Skip to navigation

Karta Operator Flags

View as MarkdownOpen in Claude

This page lists the command-line flags of the Karta Operator. The Helm chart sets most flags for you, from chart values. To pass a flag that the chart does not set, use the extraArgs value, which appends flags after the defaults. For all chart values, refer to Helm Chart Values.

Flags

The following flags control the Karta Operator, its endpoints, and leader election.

FlagDefaultDescriptionSet by the chart value
--metrics-bind-address:8080The address that the metrics endpoint binds to.ports.metrics
--health-probe-bind-address:8081The address that the health probe endpoint binds to.ports.health
--leader-electfalseEnables leader election for the controller manager.leaderElection.enabled
--leader-election-idkarta-operator.run.aiThe name of the resource that leader election uses.leaderElection.id
--kubeconfigThe path to a kubeconfig file. It is required only when the Karta Operator runs outside a cluster.Not set
--versionPrints the version of the Karta Operator and exits.Not set

Webhook Flags

The following flags control the admission webhook and its certificate. For how the certificate modes work, refer to Configure Webhook Certificates.

FlagDefaultDescriptionSet by the chart value
--enable-webhookfalseEnables the admission webhook.webhook.enabled
--webhook-port9443The port that the webhook server binds to.webhook.port
--webhook-namespaceThe namespace of the service account of the podThe namespace that the Karta Operator runs in. It is used for the certificate Secret and for the serving certificate SAN.The release namespace
--webhook-cert-dir/tmp/k8s-webhook-server/serving-certsThe directory that the Karta Operator reads the webhook serving certificate from.The chart mounts the certificate Secret at this path
--webhook-cert-modeautoThe certificate mode: auto, where the Karta Operator self-signs and rotates the certificate, or manual, where you provide the certificate. When the webhook is enabled, any other value is an error.webhook.cert.provisionMode
--webhook-cert-secretkarta-operator-webhook-certThe name of the Secret that holds the serving certificate in auto mode.The chart sets the name from the release
--webhook-service-namekarta-operator-webhookThe name of the webhook Service. It is used as the serving certificate SAN. It must match the Service that the chart creates.The chart sets the name from the release
--mutating-webhook-namekarta-operator-mutatingThe name of the MutatingWebhookConfiguration whose CA bundle the Karta Operator patches in auto mode.The chart sets the name from the release
--validating-webhook-namekarta-operator-validatingThe name of the ValidatingWebhookConfiguration whose CA bundle the Karta Operator patches in auto mode.The chart sets the name from the release

Logging Flags

The Karta Operator uses the Zap logger of controller-runtime. The chart sets --zap-log-level from the logLevel value. The other flags are available through extraArgs.

FlagDescription
--zap-develSelects the development mode defaults: the console encoder, the debug log level, and the warn stack trace level. The production mode defaults are the JSON encoder, the info log level, and the error stack trace level.
--zap-encoderThe log encoding: json or console.
--zap-log-levelThe verbosity of the logging: debug, info, error, panic, or an integer greater than 0, which selects a custom debug level of increasing verbosity.
--zap-stacktrace-levelThe level at and above which stack traces are captured: info, error, or panic.
--zap-time-encodingThe time encoding: epoch, millis, nano, iso8601, rfc3339, or rfc3339nano. The default is epoch.