Example of `/etc/sysconfig/flanneld` is not valid (#2135)
* 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);pull/2177/head^2
parent
d5a003f710
commit
bb7631d74e
|
@ -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).
|
||||
|
|
Loading…
Reference in New Issue