 the executor_args attribute of the image builder.zenml image-builder register <NAME> \

--flavor=kaniko \

--kubernetes_context=<KUBERNETES_CONTEXT> \

--executor_args='["--label", "key=value"]' # Adds a label to the final image

List of some possible additional flags:

--cache: Set to false to disable caching. Defaults to true.

--cache-dir: Set the directory where to store cached layers. Defaults to /cache.

--cache-repo: Set the repository where to store cached layers. Defaults to gcr.io/kaniko-project/executor.

--cache-ttl: Set the cache expiration time. Defaults to 24h.

--cleanup: Set to false to disable cleanup of the working directory. Defaults to true.

--compressed-caching: Set to false to disable compressed caching. Defaults to true.

For a full list of possible flags, check out the Kaniko additional flags

PreviousLocal Image Builder

NextGoogle Cloud Image Builder

Last updated 19 days ago