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
7bc7f47c
Commit
7bc7f47c
authored
Mar 27, 2015
by
António Meireles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify and turn more idiomatic flanneld's setup in CoreOS' cloud-configs.
Signed-off-by:
António Meireles
<
antonio.meireles@reformi.st
>
parent
8d94c43e
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
20 additions
and
43 deletions
+20
-43
master.yaml
docs/getting-started-guides/aws/cloud-configs/master.yaml
+4
-8
node.yaml
docs/getting-started-guides/aws/cloud-configs/node.yaml
+4
-11
master.yaml
docs/getting-started-guides/coreos/cloud-configs/master.yaml
+4
-8
node.yaml
docs/getting-started-guides/coreos/cloud-configs/node.yaml
+4
-8
standalone.yaml
...tting-started-guides/coreos/cloud-configs/standalone.yaml
+4
-8
No files found.
docs/getting-started-guides/aws/cloud-configs/master.yaml
View file @
7bc7f47c
...
...
@@ -11,6 +11,8 @@ coreos:
fleet
:
etcd-servers
:
http://localhost:4001
metadata
:
"
role=master"
flannel
:
interface
:
eth1
units
:
-
name
:
setup-network-environment.service
command
:
start
...
...
@@ -72,16 +74,10 @@ coreos:
drop-ins
:
-
name
:
50-network-config.conf
content
:
|
[Unit]
Requires=etcd.service
[Service]
ExecStartPre=/usr/bin/etcdctl set /coreos.com/network/config '{"Network":"10.244.0.0/16", "Backend": {"Type": "vxlan"}}'
ExecStart=
ExecStart=/usr/libexec/sdnotify-proxy /run/flannel/sd.sock \
/usr/bin/docker run --net=host --privileged=true --rm \
--volume=/run/flannel:/run/flannel \
--env=NOTIFY_SOCKET=/run/flannel/sd.sock \
--env-file=/run/flannel/options.env \
--volume=${ETCD_SSL_DIR}:/etc/ssl/etcd:ro \
quay.io/coreos/flannel:${FLANNEL_VER} /opt/bin/flanneld --ip-masq=true --iface=eth1
-
name
:
docker-cache.service
command
:
start
content
:
|
...
...
docs/getting-started-guides/aws/cloud-configs/node.yaml
View file @
7bc7f47c
...
...
@@ -4,6 +4,8 @@ coreos:
fleet
:
etcd-servers
:
http://<master-private-ip>:4001
metadata
:
"
role=node"
flannel
:
interface
:
eth1
units
:
-
name
:
etcd.service
mask
:
true
...
...
@@ -14,19 +16,10 @@ coreos:
drop-ins
:
-
name
:
50-network-config.conf
content
:
|
[Unit]
Requires=etcd.service
[Service]
ExecStartPre=/usr/bin/etcdctl set /coreos.com/network/config '{"Network":"10.244.0.0/16", "Backend": {"Type": "vxlan"}}'
# as we need to turn eth1 as the default interface
# https://github.com/coreos/bugs/issues/228 is sorted
# see notes in https://github.com/coreos/flannel/pull/137
ExecStart=
ExecStart=/usr/libexec/sdnotify-proxy /run/flannel/sd.sock \
/usr/bin/docker run --net=host --privileged=true --rm \
--volume=/run/flannel:/run/flannel \
--env=NOTIFY_SOCKET=/run/flannel/sd.sock \
--env-file=/run/flannel/options.env \
--volume=${ETCD_SSL_DIR}:/etc/ssl/etcd:ro \
quay.io/coreos/flannel:${FLANNEL_VER} /opt/bin/flanneld -etcd-endpoints http://<master-private-ip>:4001 --ip-masq=true --iface=eth1
-
name
:
docker.service
command
:
start
drop-ins
:
...
...
docs/getting-started-guides/coreos/cloud-configs/master.yaml
View file @
7bc7f47c
...
...
@@ -11,6 +11,8 @@ coreos:
fleet
:
etcd-servers
:
http://localhost:4001
metadata
:
"
role=master"
flannel
:
interface
:
eth1
units
:
-
name
:
setup-network-environment.service
command
:
start
...
...
@@ -74,16 +76,10 @@ coreos:
drop-ins
:
-
name
:
50-network-config.conf
content
:
|
[Unit]
Requires=etcd.service
[Service]
ExecStartPre=/usr/bin/etcdctl set /coreos.com/network/config '{"Network":"10.244.0.0/16", "Backend": {"Type": "vxlan"}}'
ExecStart=
ExecStart=/usr/libexec/sdnotify-proxy /run/flannel/sd.sock \
/usr/bin/docker run --net=host --privileged=true --rm \
--volume=/run/flannel:/run/flannel \
--env=NOTIFY_SOCKET=/run/flannel/sd.sock \
--env-file=/run/flannel/options.env \
--volume=${ETCD_SSL_DIR}:/etc/ssl/etcd:ro \
quay.io/coreos/flannel:${FLANNEL_VER} /opt/bin/flanneld --ip-masq=true --iface=eth1
-
name
:
docker-cache.service
command
:
start
content
:
|
...
...
docs/getting-started-guides/coreos/cloud-configs/node.yaml
View file @
7bc7f47c
...
...
@@ -4,6 +4,8 @@ coreos:
fleet
:
etcd-servers
:
http://<master-private-ip>:4001
metadata
:
"
role=node"
flannel
:
interface
:
eth1
units
:
-
name
:
etcd.service
mask
:
true
...
...
@@ -14,16 +16,10 @@ coreos:
drop-ins
:
-
name
:
50-network-config.conf
content
:
|
[Unit]
Requires=etcd.service
[Service]
ExecStartPre=/usr/bin/etcdctl set /coreos.com/network/config '{"Network":"10.244.0.0/16", "Backend": {"Type": "vxlan"}}'
ExecStart=
ExecStart=/usr/libexec/sdnotify-proxy /run/flannel/sd.sock \
/usr/bin/docker run --net=host --privileged=true --rm \
--volume=/run/flannel:/run/flannel \
--env=NOTIFY_SOCKET=/run/flannel/sd.sock \
--env-file=/run/flannel/options.env \
--volume=${ETCD_SSL_DIR}:/etc/ssl/etcd:ro \
quay.io/coreos/flannel:${FLANNEL_VER} /opt/bin/flanneld -etcd-endpoints http://<master-private-ip>:4001 --ip-masq=true --iface=eth1
-
name
:
docker.service
command
:
start
drop-ins
:
...
...
docs/getting-started-guides/coreos/cloud-configs/standalone.yaml
View file @
7bc7f47c
...
...
@@ -9,6 +9,8 @@ write_files:
until curl http://127.0.0.1:4001/v2/machines; do sleep 2; done
hostname
:
standalone
coreos
:
flannel
:
interface
:
eth1
units
:
-
name
:
etcd.service
command
:
start
...
...
@@ -35,16 +37,10 @@ coreos:
drop-ins
:
-
name
:
50-network-config.conf
content
:
|
[Unit]
Requires=etcd.service
[Service]
ExecStartPre=/usr/bin/etcdctl set /coreos.com/network/config '{"Network":"10.244.0.0/16", "Backend": {"Type": "vxlan"}}'
ExecStart=
ExecStart=/usr/libexec/sdnotify-proxy /run/flannel/sd.sock \
/usr/bin/docker run --net=host --privileged=true --rm \
--volume=/run/flannel:/run/flannel \
--env=NOTIFY_SOCKET=/run/flannel/sd.sock \
--env-file=/run/flannel/options.env \
--volume=${ETCD_SSL_DIR}:/etc/ssl/etcd:ro \
quay.io/coreos/flannel:${FLANNEL_VER} /opt/bin/flanneld --ip-masq=true --iface=eth1
-
name
:
docker-cache.service
command
:
start
content
:
|
...
...
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