Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
2371cdaa
Commit
2371cdaa
authored
Nov 23, 2015
by
k8s-merge-robot
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #17419 from ZJU-SEL/fix-ubuntu-etcd-flag
Auto commit by PR queue bot
parents
147b6911
5ebff99d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
6 deletions
+6
-6
util.sh
cluster/ubuntu/util.sh
+4
-4
master.md
docs/getting-started-guides/docker-multinode/master.md
+1
-1
master.sh
docs/getting-started-guides/docker-multinode/master.sh
+1
-1
No files found.
cluster/ubuntu/util.sh
View file @
2371cdaa
...
@@ -188,8 +188,8 @@ function create-etcd-opts() {
...
@@ -188,8 +188,8 @@ function create-etcd-opts() {
cat
<<
EOF
> ~/kube/default/etcd
cat
<<
EOF
> ~/kube/default/etcd
ETCD_OPTS="\
ETCD_OPTS="\
-name infra\
-name infra\
-listen-client-urls http://
0.0.0.0
:4001\
-listen-client-urls http://
127.0.0.1:4001,http://
${
1
}
:4001\
-advertise-client-urls http://
127.0.0.1
:4001"
-advertise-client-urls http://
${
1
}
:4001"
EOF
EOF
}
}
...
@@ -379,7 +379,7 @@ function provision-master() {
...
@@ -379,7 +379,7 @@ function provision-master() {
source ~/kube/util.sh
source ~/kube/util.sh
setClusterInfo
setClusterInfo
create-etcd-opts
create-etcd-opts
'
${
MASTER_IP
}
'
create-kube-apiserver-opts
\
create-kube-apiserver-opts
\
'
${
SERVICE_CLUSTER_IP_RANGE
}
'
\
'
${
SERVICE_CLUSTER_IP_RANGE
}
'
\
'
${
ADMISSION_CONTROL
}
'
\
'
${
ADMISSION_CONTROL
}
'
\
...
@@ -481,7 +481,7 @@ function provision-masterandnode() {
...
@@ -481,7 +481,7 @@ function provision-masterandnode() {
source ~/kube/util.sh
source ~/kube/util.sh
setClusterInfo
setClusterInfo
create-etcd-opts
create-etcd-opts
'
${
MASTER_IP
}
'
create-kube-apiserver-opts
\
create-kube-apiserver-opts
\
'
${
SERVICE_CLUSTER_IP_RANGE
}
'
\
'
${
SERVICE_CLUSTER_IP_RANGE
}
'
\
'
${
ADMISSION_CONTROL
}
'
\
'
${
ADMISSION_CONTROL
}
'
\
...
...
docs/getting-started-guides/docker-multinode/master.md
View file @
2371cdaa
...
@@ -70,7 +70,7 @@ across reboots and failures.
...
@@ -70,7 +70,7 @@ across reboots and failures.
Run:
Run:
```
sh
```
sh
sudo
docker
-H
unix:///var/run/docker-bootstrap.sock run
--net
=
host
-d
gcr.io/google_containers/etcd:2.2.1 /usr/local/bin/etcd
--listen-client-urls
=
http://127.0.0.1:4001,http://
${
MASTER_IP
}
:4001
--advertise-client-urls
=
http://
127.0.0.1:4001,http://
${
MASTER_IP
}
:4001
--data-dir
=
/var/etcd/data
sudo
docker
-H
unix:///var/run/docker-bootstrap.sock run
--net
=
host
-d
gcr.io/google_containers/etcd:2.2.1 /usr/local/bin/etcd
--listen-client-urls
=
http://127.0.0.1:4001,http://
${
MASTER_IP
}
:4001
--advertise-client-urls
=
http://
${
MASTER_IP
}
:4001
--data-dir
=
/var/etcd/data
```
```
Next, you need to set a CIDR range for flannel. This CIDR should be chosen to be non-overlapping with any existing network you are using:
Next, you need to set a CIDR range for flannel. This CIDR should be chosen to be non-overlapping with any existing network you are using:
...
...
docs/getting-started-guides/docker-multinode/master.sh
View file @
2371cdaa
...
@@ -121,7 +121,7 @@ start_k8s(){
...
@@ -121,7 +121,7 @@ start_k8s(){
gcr.io/google_containers/etcd:2.2.1
\
gcr.io/google_containers/etcd:2.2.1
\
/usr/local/bin/etcd
\
/usr/local/bin/etcd
\
--listen-client-urls
=
http://127.0.0.1:4001,http://
${
MASTER_IP
}
:4001
\
--listen-client-urls
=
http://127.0.0.1:4001,http://
${
MASTER_IP
}
:4001
\
--advertise-client-urls
=
http://
127.0.0.1:4001,http://
${
MASTER_IP
}
:4001
--advertise-client-urls
=
http://
${
MASTER_IP
}
:4001
--data-dir
=
/var/etcd/data
--data-dir
=
/var/etcd/data
sleep
5
sleep
5
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment