Most of the options relate to
kopf run, though some are shared by other
commands, such as
kopf freeze and
- -m, --module
A semantical equivalent to
python -m— which importable modules to import on startup.
Be quiet: only show warnings and errors, but not the normal processing logs.
Show what Kopf is doing, but hide the low-level asyncio & aiohttp logs.
Extremely verbose: log all the asyncio internals too, so as the API traffic.
- --log-prefix, --no-log-prefix
Whether to prefix all object-related messages with the name of the object. By default, the prefixing is enabled.
For JSON logs, under which top-level key to put the object-identifying information, such as its name, namespace, etc.
- -n, --namespace
Serve this namespace or all namespaces mathing the pattern (or excluded from patterns). The option can be repeated multiple times.
Scopes for the pattern syntax.
- -A, --all-namespaces
Serve the whole cluster. This is different from
--namespace *: with
--namespace *, the namespaces are monitored, and every resource in every namespace is watched separately, starting and stopping as needed; with
--all-namespaces, the cluster endpoints of the Kubernetes API are used for resources, the namespaces are not monitored.
The endpoint where to serve the probes and health-checks. E.g.
http://is currently supported. By default, the probing endpoint is not served.
Disable any peering or auto-detection of peering. Run strictly as if this is the only instance of the operator.
If specified, the operator will not run until that peering exists (for the namespaced operators, until it exists in each served namespace).
If not specified, the operator checks for the name “default” and uses it. If the “default” peering is absent, the operator runs in standalone mode.
Which priority to use for the operator. An operator with the highest priority wins the peering competitions and handlers the resources.
The default priority is
--devsets it to
Run in the development mode. Currently, this implies
--priority=666. Other meanings can be added in the future, such as automatic reloading of the source code.