From bb7631d74e90f64a84e8ffa53c5959cd4103121a Mon Sep 17 00:00:00 2001 From: Alexander Ilyin Date: Mon, 9 Jan 2017 15:55:10 -0800 Subject: [PATCH] Example of `/etc/sysconfig/flanneld` is not valid (#2135) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Example of `/etc/sysconfig/flanneld` is not valid Configuration keys were different, I got those errors when followed steps from docs: ``` [ailyin@elite ~]$ systemctl status flanneld.service ● flanneld.service - Flanneld overlay address etcd agent Loaded: loaded (/usr/lib/systemd/system/flanneld.service; enabled; vendor preset: disabled) Active: activating (start) since Wed 2017-01-04 19:00:21 EST; 34s ago Main PID: 4668 (flanneld) Memory: 3.5M CGroup: /system.slice/flanneld.service └─4668 /usr/bin/flanneld -etcd-endpoints= -etcd-prefix= Jan 04 19:00:46 elite.dev flanneld[4668]: E0104 19:00:46.395562 04668 network.go:53] Failed to retrieve network config: client: etcd cluster is unavailable or misconfigured Jan 04 19:00:47 elite.dev flanneld[4668]: E0104 19:00:47.395788 04668 network.go:53] Failed to retrieve network config: client: etcd cluster is unavailable or misconfigured Jan 04 19:00:48 elite.dev flanneld[4668]: E0104 19:00:48.395990 04668 network.go:53] Failed to retrieve network config: client: etcd cluster is unavailable or misconfigured Jan 04 19:00:49 elite.dev flanneld[4668]: E0104 19:00:49.396141 04668 network.go:53] Failed to retrieve network config: client: etcd cluster is unavailable or misconfigured Jan 04 19:00:50 elite.dev flanneld[4668]: E0104 19:00:50.396306 04668 network.go:53] Failed to retrieve network config: client: etcd cluster is unavailable or misconfigured Jan 04 19:00:51 elite.dev flanneld[4668]: E0104 19:00:51.396451 04668 network.go:53] Failed to retrieve network config: client: etcd cluster is unavailable or misconfigured Jan 04 19:00:52 elite.dev flanneld[4668]: E0104 19:00:52.396572 04668 network.go:53] Failed to retrieve network config: client: etcd cluster is unavailable or misconfigured Jan 04 19:00:53 elite.dev flanneld[4668]: E0104 19:00:53.396701 04668 network.go:53] Failed to retrieve network config: client: etcd cluster is unavailable or misconfigured Jan 04 19:00:54 elite.dev flanneld[4668]: E0104 19:00:54.396855 04668 network.go:53] Failed to retrieve network config: client: etcd cluster is unavailable or misconfigured Jan 04 19:00:55 elite.dev flanneld[4668]: E0104 19:00:55.396992 04668 network.go:53] Failed to retrieve network config: client: etcd cluster is unavailable or misconfigured ``` * Updated Flanneld configuration example for node (same as for master); --- .../centos/centos_manual_config.md | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/getting-started-guides/centos/centos_manual_config.md b/docs/getting-started-guides/centos/centos_manual_config.md index 756aa4b248..85b05154b6 100644 --- a/docs/getting-started-guides/centos/centos_manual_config.md +++ b/docs/getting-started-guides/centos/centos_manual_config.md @@ -131,15 +131,17 @@ $ etcdctl mk /kube-centos/network/config "{ \"Network\": \"172.30.0.0/16\", \"Su * Configure flannel to overlay Docker network in /etc/sysconfig/flanneld on the master (also in the nodes as we'll see): ```shell +# Flanneld configuration options + # etcd url location. Point this to the server where etcd runs -FLANNEL_ETCD="http://centos-master:2379" +FLANNEL_ETCD_ENDPOINTS="http://centos-master:2379" # etcd config key. This is the configuration key that flannel queries # For address range assignment -FLANNEL_ETCD_KEY="/kube-centos/network" +FLANNEL_ETCD_PREFIX="/kube-centos/network" # Any additional options that you want to pass -FLANNEL_OPTIONS="" +#FLANNEL_OPTIONS="" ``` * Start the appropriate services on master: @@ -179,15 +181,17 @@ KUBELET_ARGS="" * Configure flannel to overlay Docker network in /etc/sysconfig/flanneld (in all the nodes) ```shell +# Flanneld configuration options + # etcd url location. Point this to the server where etcd runs -FLANNEL_ETCD="http://centos-master:2379" +FLANNEL_ETCD_ENDPOINTS="http://centos-master:2379" # etcd config key. This is the configuration key that flannel queries # For address range assignment -FLANNEL_ETCD_KEY="/kube-centos/network" +FLANNEL_ETCD_PREFIX="/kube-centos/network" # Any additional options that you want to pass -FLANNEL_OPTIONS="" +#FLANNEL_OPTIONS="" ``` * Start the appropriate services on node (centos-minion-n).