Skip to content

Instantly share code, notes, and snippets.

@kigawas
Created June 5, 2019 06:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kigawas/d5d58cb8a3363bc3cab41fd732b7623a to your computer and use it in GitHub Desktop.
Save kigawas/d5d58cb8a3363bc3cab41fd732b7623a to your computer and use it in GitHub Desktop.
Ansible playbook for updating kubelet daemon config on all nodes
---
- hosts: all
become: true
tasks:
- name: kubelet gce config
copy:
dest: /etc/default/kubelet
content: KUBELET_EXTRA_ARGS=--cloud-provider=gce # Add your custom flag here
- name: Systemd reload configs
systemd:
state: restarted
daemon_reload: yes # reload the daemon config
name: kubelet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment