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
6a2e5855
Commit
6a2e5855
authored
Aug 07, 2015
by
Lei Zhang
Committed by
resouer
Aug 12, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
vxlan as bankend of flannel & auto restart k8s.
parent
49f48340
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
master.sh
docs/getting-started-guides/docker-multinode/master.sh
+2
-2
worker.sh
docs/getting-started-guides/docker-multinode/worker.sh
+2
-2
No files found.
docs/getting-started-guides/docker-multinode/master.sh
View file @
6a2e5855
...
@@ -94,7 +94,7 @@ start_k8s(){
...
@@ -94,7 +94,7 @@ start_k8s(){
sleep
5
sleep
5
# Set flannel net config
# Set flannel net config
docker
-H
unix:///var/run/docker-bootstrap.sock run
--net
=
host gcr.io/google_containers/etcd:2.0.12 etcdctl
set
/coreos.com/network/config
'{ "Network": "10.1.0.0/16"
}'
docker
-H
unix:///var/run/docker-bootstrap.sock run
--net
=
host gcr.io/google_containers/etcd:2.0.12 etcdctl
set
/coreos.com/network/config
'{ "Network": "10.1.0.0/16"
, "Backend": {"Type": "vxlan"}
}'
# iface may change to a private network interface, eth0 is for default
# iface may change to a private network interface, eth0 is for default
flannelCID
=
$(
docker
-H
unix:///var/run/docker-bootstrap.sock run
--restart
=
always
-d
--net
=
host
--privileged
-v
/dev/net:/dev/net quay.io/coreos/flannel:0.5.0 /opt/bin/flanneld
-iface
=
"eth0"
)
flannelCID
=
$(
docker
-H
unix:///var/run/docker-bootstrap.sock run
--restart
=
always
-d
--net
=
host
--privileged
-v
/dev/net:/dev/net quay.io/coreos/flannel:0.5.0 /opt/bin/flanneld
-iface
=
"eth0"
)
...
@@ -135,7 +135,7 @@ start_k8s(){
...
@@ -135,7 +135,7 @@ start_k8s(){
sleep
5
sleep
5
# Start kubelet & proxy, then start master components as pods
# Start kubelet & proxy, then start master components as pods
docker run
--net
=
host
--privileged
-d
-v
/sys:/sys:ro
-v
/var/run/docker.sock:/var/run/docker.sock gcr.io/google_containers/hyperkube:v
${
K8S_VERSION
}
/hyperkube kubelet
--api-servers
=
http://localhost:8080
--v
=
2
--address
=
0.0.0.0
--enable-server
--hostname-override
=
127.0.0.1
--config
=
/etc/kubernetes/manifests-multi
docker run
--net
=
host
--privileged
-
-restart
=
always
-
d
-v
/sys:/sys:ro
-v
/var/run/docker.sock:/var/run/docker.sock gcr.io/google_containers/hyperkube:v
${
K8S_VERSION
}
/hyperkube kubelet
--api-servers
=
http://localhost:8080
--v
=
2
--address
=
0.0.0.0
--enable-server
--hostname-override
=
127.0.0.1
--config
=
/etc/kubernetes/manifests-multi
docker run
-d
--net
=
host
--privileged
gcr.io/google_containers/hyperkube:v
${
K8S_VERSION
}
/hyperkube proxy
--master
=
http://127.0.0.1:8080
--v
=
2
docker run
-d
--net
=
host
--privileged
gcr.io/google_containers/hyperkube:v
${
K8S_VERSION
}
/hyperkube proxy
--master
=
http://127.0.0.1:8080
--v
=
2
}
}
...
...
docs/getting-started-guides/docker-multinode/worker.sh
View file @
6a2e5855
...
@@ -133,8 +133,8 @@ start_k8s() {
...
@@ -133,8 +133,8 @@ start_k8s() {
sleep
5
sleep
5
# Start kubelet & proxy in container
# Start kubelet & proxy in container
sudo
docker run
--net
=
host
--privileged
-d
-v
/sys:/sys:ro
-v
/var/run/docker.sock:/var/run/docker.sock gcr.io/google_containers/hyperkube:v
${
K8S_VERSION
}
/hyperkube kubelet
--api-servers
=
http://
${
MASTER_IP
}
:8080
--v
=
2
--address
=
0.0.0.0
--enable-server
--hostname-override
=
$(
hostname
-i
)
sudo
docker run
--net
=
host
--privileged
-
-restart
=
always
-
d
-v
/sys:/sys:ro
-v
/var/run/docker.sock:/var/run/docker.sock gcr.io/google_containers/hyperkube:v
${
K8S_VERSION
}
/hyperkube kubelet
--api-servers
=
http://
${
MASTER_IP
}
:8080
--v
=
2
--address
=
0.0.0.0
--enable-server
--hostname-override
=
$(
hostname
-i
)
sudo
docker run
-d
--net
=
host
--privileged
gcr.io/google_containers/hyperkube:v
${
K8S_VERSION
}
/hyperkube proxy
--master
=
http://
${
MASTER_IP
}
:8080
--v
=
2
sudo
docker run
-d
--net
=
host
--privileged
--restart
=
always
gcr.io/google_containers/hyperkube:v
${
K8S_VERSION
}
/hyperkube proxy
--master
=
http://
${
MASTER_IP
}
:8080
--v
=
2
}
}
...
...
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