mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-09-07 04:03:20 +00:00
Merge branch 'master' of github.com:GoogleCloudPlatform/kubernetes into add-charms
This commit is contained in:
@@ -37,6 +37,7 @@ coreos:
|
||||
Environment=ETCD_INITIAL_ADVERTISE_PEER_URLS=http://%host%:2380
|
||||
Environment=ETCD_LISTEN_PEER_URLS=http://%host%:2380
|
||||
Environment=ETCD_LISTEN_CLIENT_URLS=http://0.0.0.0:2379,http://0.0.0.0:4001
|
||||
Environment=ETCD_ADVERTISE_CLIENT_URLS=http://%host%:2379,http://%host%:4001
|
||||
Environment=ETCD_INITIAL_CLUSTER=%cluster%
|
||||
Environment=ETCD_INITIAL_CLUSTER_STATE=new
|
||||
ExecStart=/opt/bin/etcd2
|
||||
|
@@ -129,7 +129,7 @@ coreos:
|
||||
ExecStartPre=/usr/bin/curl \
|
||||
--silent \
|
||||
--location \
|
||||
https://github.com/zettio/weave/releases/download/latest_release/weave \
|
||||
https://github.com/weaveworks/weave/releases/download/v0.9.0/weave \
|
||||
--output /opt/bin/weave
|
||||
ExecStartPre=/usr/bin/curl \
|
||||
--silent \
|
||||
|
@@ -77,6 +77,11 @@ KUBE_SERVICE_ADDRESSES="--portal_net=10.254.0.0/16"
|
||||
KUBE_API_ARGS=""
|
||||
```
|
||||
|
||||
* Edit /etc/etcd/etcd.conf,let the etcd to listen all the ip instead of 127.0.0.1,if not ,you will get the error like "connection refused"
|
||||
```
|
||||
ETCD_LISTEN_CLIENT_URLS="http://0.0.0.0:4001"
|
||||
```
|
||||
|
||||
* Start the appropriate services on master:
|
||||
|
||||
```
|
||||
|
Reference in New Issue
Block a user