Skip to main content
Version: main

Disallow pulling Gadgets

It is possible to disallow pulling gadgets by using the --disallow-pulling flag. By default, pulling is allowed.

You can specify this option only at deploy time. Start by creating a daemon configuration file, for example daemon-config.yaml:

cat <<EOF > daemon-config.yaml
operator:
oci:
disallow-pulling: true
EOF
$ kubectl gadget deploy --daemon-config=daemon-config.yaml
...
Inspektor Gadget successfully deployed
$ kubectl gadget run trace_exec
Error: fetching gadget information: getting gadget info: rpc error: code = Unknown desc = getting gadget info: initializing and preparing operators: instantiating operator "oci": ensuring image: pulling image (if missing) "trace_exec": pulling image "trace_exec": pulling is disabled