From 36093e2863e4c0e247f7fa695d4f723f7ade55c8 Mon Sep 17 00:00:00 2001 From: Chris Bargmann Date: Thu, 7 Jun 2018 15:35:50 +0200 Subject: [PATCH] Create directory at /var/lib/kubernetes/ before moving config First of all thanks for the great tutorial! When I did the tutorial, I noticed that the folder `/var/lib/kubernetes/` is missing when moving the kubernetes-controller config. I added the `mkdir` statement to the docs. ``` { + sudo mkdir -p /var/lib/kubernetes/ sudo mv kube-controller-manager.kubeconfig /var/lib/kubernetes/ } ``` Cheers! --- docs/08-bootstrapping-kubernetes-controllers.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docs/08-bootstrapping-kubernetes-controllers.md b/docs/08-bootstrapping-kubernetes-controllers.md index a0ae93c..fde969d 100644 --- a/docs/08-bootstrapping-kubernetes-controllers.md +++ b/docs/08-bootstrapping-kubernetes-controllers.md @@ -114,7 +114,10 @@ EOF Move the `kube-controller-manager` kubeconfig into place: ``` -sudo mv kube-controller-manager.kubeconfig /var/lib/kubernetes/ +{ + sudo mkdir -p /var/lib/kubernetes/ + sudo mv kube-controller-manager.kubeconfig /var/lib/kubernetes/ +} ``` Create the `kube-controller-manager.service` systemd unit file: