Skip to content

Instantly share code, notes, and snippets.

@dky
Created May 12, 2025 18:36
Show Gist options
  • Save dky/1f93cacd868419c1e56b54a939467279 to your computer and use it in GitHub Desktop.
Save dky/1f93cacd868419c1e56b54a939467279 to your computer and use it in GitHub Desktop.
Sed Kublet
sudo sed -i 's/^\(Environment="KUBELET_EXTRA_ARGS=[^"]*\)"$/\1 --kubeconfig=/var/lib/kubelet/kubeconfig --node-labels=disktype=ssd/' /etc/systemd/system/kubelet.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment