Created
June 5, 2019 06:28
-
-
Save kigawas/d5d58cb8a3363bc3cab41fd732b7623a to your computer and use it in GitHub Desktop.
Ansible playbook for updating kubelet daemon config on all nodes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- 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