Configuration

Every flag of the controller, with its default.

The controller takes its configuration as flags. The chart sets the ones an installation needs and leaves the rest alone.

FlagDescriptionDefault
--cleanup-webhooksDelete the webhook configurations and exit. Used by the chart to clean up after an uninstallfalse
--compliance-scan-intervalInterval between compliance scans over the objects that already exist. Zero disables them-
--compose-mutationsMake every mutation policy see the object as the previous ones left it. Without it, every policy evaluates the object as it arrivedfalse
--enable-http2If set, HTTP/2 will be enabled for the metrics and webhook serversfalse
--enable-special-labelsEnable labels that perform sensitive actionsfalse
--exclude-admission-self-namespaceExclude Admitik resources from admission evaluationsfalse
--excluded-admission-namespacesComma-separated list of namespaces to be excluded from admission evaluations. Commonly used for ‘kube-system’-
--health-probe-bind-addressThe address the probe endpoint binds to.:8081
--kube-client-burstThe burst capacity of communication between the controller and the API Server10
--kube-client-qpsThe QPS rate of communication between controller and the API Server5
--kubeconfigPaths to a kubeconfig. Only required if out-of-cluster.-
--leader-electEnable leader election for controller manager. Enabling this will ensure there is only one active controller manager.false
--metrics-bind-addressThe address the metric endpoint binds to. Use the port :8080. If not set, it will be 0 in order to disable the metrics server0
--metrics-secureIf set the metrics endpoint is served securelyfalse
--sources-time-to-resync-informersInterval to resynchronize all resources in the informers1m0s
--webhook-client-hostnameThe hostname Kubernetes uses to reach the webhooks server. Empty means admitik-webhooks..svc-
--webhook-client-portThe port used by Kubernetes when calling the webhooks server10250
--webhook-client-timeoutThe time waited by Kubernetes when calling the webhooks server before considering timeout10
--webhook-server-autogenerate-certsEnable autogeneration of certificates for webhooks serverfalse
--webhook-server-caThe CA bundle to use for the webhooks server-
--webhook-server-certificateThe Certificate used by webhooks server-
--webhook-server-certs-secret-nameKubernetes Secret object name to get certificates from. Keys are: ca.crt, tls.crt, tls.key-
--webhook-server-pathThe path where the webhooks server listens/admission
--webhook-server-portThe port where the webhooks server listens10250
--webhook-server-private-keyThe Private Key used by webhooks server-
--zap-develDevelopment Mode defaults(encoder=consoleEncoder,logLevel=Debug,stackTraceLevel=Warn). Production Mode defaults(encoder=jsonEncoder,logLevel=Info,stackTraceLevel=Error)false
--zap-encoderZap log encoding (one of ‘json’ or ‘console’)-
--zap-log-levelZap Level to configure the verbosity of logging. Can be one of ‘debug’, ‘info’, ’error’, ‘panic’or any integer value > 0 which corresponds to custom debug levels of increasing verbosity-
--zap-stacktrace-levelZap Level at and above which stacktraces are captured (one of ‘info’, ’error’, ‘panic’).-
--zap-time-encodingZap time encoding (one of ’epoch’, ‘millis’, ’nano’, ‘iso8601’, ‘rfc3339’ or ‘rfc3339nano’). Defaults to ’epoch’.-

Changing them

With the chart, controller.extraArgs appends flags to the ones it already passes:

controller:
  extraArgs:
    - --compose-mutations
    - --compliance-scan-interval=1h

With the bundle, edit the args of the Deployment.

Logging

--zap-* comes from controller-runtime. The default is JSON at info level, which is what you want in a cluster. --zap-devel switches to console output at debug level. What a decision writes is in Logs.