Jorge Silva
Jorge Silva

Reputation: 4614

Check kubelet startup options/settings?

Kubernetes kubelets can be run with a specific set of options (https://kubernetes.io/docs/admin/kubelet/). Is there a way to see, through kubectl or similar way, the options that kubelet was run with?

I basically want to know if --allow-privileged was passed in, but see no way of checking that.

Upvotes: 2

Views: 6784

Answers (2)

Sida Zhou
Sida Zhou

Reputation: 3705

Normally this would work

systemctl status kubelet | less

Upvotes: 1

silverfox
silverfox

Reputation: 5272

Use ps x | grep kubelet or cat /proc/$(pidof kubelet)/cmdline to get commandline.

If kubelet is installed by apt or yum, mostly it's working as a systemd service.

Take a look at files in /etc/systemd/system/kubelet.service.d/ folder, where the arguments kubelet running with.

Upvotes: 4

Related Questions