From 893d689658b9438e3b77f1f7804a84a8ae53b941 Mon Sep 17 00:00:00 2001 From: Ruxandra Burtica Date: Fri, 24 Mar 2017 17:36:09 +0200 Subject: [PATCH] Updated worker setup for AWS --- docs/05-kubernetes-worker.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/docs/05-kubernetes-worker.md b/docs/05-kubernetes-worker.md index 08ee9f1..b7dbf5c 100644 --- a/docs/05-kubernetes-worker.md +++ b/docs/05-kubernetes-worker.md @@ -167,13 +167,14 @@ ExecStart=/usr/bin/kubelet \ --tls-cert-file=/var/lib/kubernetes/kubernetes.pem \ --tls-private-key-file=/var/lib/kubernetes/kubernetes-key.pem \ --v=2 - + Restart=on-failure RestartSec=5 [Install] WantedBy=multi-user.target" > /etc/systemd/system/kubelet.service' ``` +- Note: If you are deploying this on AWS then you should add ``--cloud-provider=aws`` in the ``kubelet.service`` unit file's [Service] section. If you are adding this before ``--v=2`` line , remember to add ``\`` character at the end. ``` sudo systemctl daemon-reload @@ -200,7 +201,7 @@ ExecStart=/usr/bin/kube-proxy \ --kubeconfig=/var/lib/kubelet/kubeconfig \ --proxy-mode=iptables \ --v=2 - + Restart=on-failure RestartSec=5