Skip to content

Commit

Permalink
[CE-294] Set k8s kubelet fail on swap to be false
Browse files Browse the repository at this point in the history
k8s fails to start kubelet if your system swap is on. Kubelet
won't fail in the past but now if the swap is on from your
operating system, kubelet will fail to start. The solution
is to set that kubelet flag fail-swap-on to false.

Change-Id: I35f7ddd6859982a998a3c80fddf25b2605dae135
Signed-off-by: tongliofcary <[email protected]>
  • Loading branch information
tongliofcary committed Mar 8, 2018
1 parent 0523950 commit 7799713
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/agent/ansible/roles/env_k8s/worker/tasks/apply.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@
--cluster-domain={{ cluster.domain }}
--allow-privileged=true
--resolv-conf=''
--fail-swap-on=false
proxy_params: >-
--master={{ private_ip }}:8080
--cluster-cidr={{ cluster.container_network.Network }}
Expand Down

0 comments on commit 7799713

Please sign in to comment.