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
6b830cf2
Commit
6b830cf2
authored
Dec 09, 2015
by
Tim Hockin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a couple flannel invocations I missed
parent
b266aa15
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
8 additions
and
8 deletions
+8
-8
config-build.sh
cluster/centos/config-build.sh
+1
-1
flannel.sh
cluster/centos/node/scripts/flannel.sh
+1
-1
initd
cluster/saltbase/salt/flannel/initd
+1
-1
download-release.sh
cluster/ubuntu/download-release.sh
+2
-3
util.sh
cluster/ubuntu/util.sh
+1
-0
provision-network-master.sh
cluster/vagrant/provision-network-master.sh
+1
-1
provision-network-node.sh
cluster/vagrant/provision-network-node.sh
+1
-1
No files found.
cluster/centos/config-build.sh
View file @
6b830cf2
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
RELEASES_DIR
=
${
RELEASES_DIR
:-
/tmp/downloads
}
RELEASES_DIR
=
${
RELEASES_DIR
:-
/tmp/downloads
}
# Define flannel version to use.
# Define flannel version to use.
FLANNEL_VERSION
=
${
FLANNEL_VERSION
:-
"0.5.
3
"
}
FLANNEL_VERSION
=
${
FLANNEL_VERSION
:-
"0.5.
5
"
}
# Define etcd version to use.
# Define etcd version to use.
ETCD_VERSION
=
${
ETCD_VERSION
:-
"2.2.1"
}
ETCD_VERSION
=
${
ETCD_VERSION
:-
"2.2.1"
}
...
...
cluster/centos/node/scripts/flannel.sh
View file @
6b830cf2
...
@@ -32,7 +32,7 @@ Before=docker.service
...
@@ -32,7 +32,7 @@ Before=docker.service
[Service]
[Service]
EnvironmentFile=-/opt/kubernetes/cfg/flannel
EnvironmentFile=-/opt/kubernetes/cfg/flannel
ExecStart=/opt/kubernetes/bin/flanneld \
${
FLANNEL_ETCD
}
\
${
FLANNEL_ETCD_KEY
}
ExecStart=/opt/kubernetes/bin/flanneld
--ip-masq
\
${
FLANNEL_ETCD
}
\
${
FLANNEL_ETCD_KEY
}
ExecStartPost=/opt/kubernetes/bin/mk-docker-opts.sh -d /run/flannel/docker
ExecStartPost=/opt/kubernetes/bin/mk-docker-opts.sh -d /run/flannel/docker
Type=notify
Type=notify
...
...
cluster/saltbase/salt/flannel/initd
View file @
6b830cf2
...
@@ -17,7 +17,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin
...
@@ -17,7 +17,7 @@ PATH=/sbin:/usr/sbin:/bin:/usr/bin
DESC
=
"Flannel overlay network daemon"
DESC
=
"Flannel overlay network daemon"
NAME
=
flannel
NAME
=
flannel
DAEMON
=
/usr/local/bin/flanneld
DAEMON
=
/usr/local/bin/flanneld
DAEMON_ARGS
=
""
DAEMON_ARGS
=
"
--ip-masq
"
DAEMON_LOG_FILE
=
/var/log/
$NAME
.log
DAEMON_LOG_FILE
=
/var/log/
$NAME
.log
PIDFILE
=
/var/run/
$NAME
.pid
PIDFILE
=
/var/run/
$NAME
.pid
SCRIPTNAME
=
/etc/init.d/
$NAME
SCRIPTNAME
=
/etc/init.d/
$NAME
...
...
cluster/ubuntu/download-release.sh
View file @
6b830cf2
...
@@ -31,7 +31,7 @@ mkdir -p binaries/master
...
@@ -31,7 +31,7 @@ mkdir -p binaries/master
mkdir
-p
binaries/minion
mkdir
-p
binaries/minion
# flannel
# flannel
FLANNEL_VERSION
=
${
FLANNEL_VERSION
:-
"0.5.
3
"
}
FLANNEL_VERSION
=
${
FLANNEL_VERSION
:-
"0.5.
5
"
}
echo
"Prepare flannel
${
FLANNEL_VERSION
}
release ..."
echo
"Prepare flannel
${
FLANNEL_VERSION
}
release ..."
grep
-q
"^
${
FLANNEL_VERSION
}
\$
"
binaries/.flannel 2>/dev/null
||
{
grep
-q
"^
${
FLANNEL_VERSION
}
\$
"
binaries/.flannel 2>/dev/null
||
{
curl
-L
https://github.com/coreos/flannel/releases/download/v
${
FLANNEL_VERSION
}
/flannel-
${
FLANNEL_VERSION
}
-linux-amd64
.tar.gz
-o
flannel.tar.gz
curl
-L
https://github.com/coreos/flannel/releases/download/v
${
FLANNEL_VERSION
}
/flannel-
${
FLANNEL_VERSION
}
-linux-amd64
.tar.gz
-o
flannel.tar.gz
...
@@ -73,4 +73,4 @@ grep -q "^${KUBE_VERSION}\$" binaries/.kubernetes 2>/dev/null || {
...
@@ -73,4 +73,4 @@ grep -q "^${KUBE_VERSION}\$" binaries/.kubernetes 2>/dev/null || {
rm
-rf
flannel
*
kubernetes
*
etcd
*
rm
-rf
flannel
*
kubernetes
*
etcd
*
echo
"Done! All your commands locate in kubernetes/cluster/ubuntu/binaries dir"
echo
"Done! All your commands locate in kubernetes/cluster/ubuntu/binaries dir"
popd
popd
\ No newline at end of file
cluster/ubuntu/util.sh
View file @
6b830cf2
...
@@ -257,6 +257,7 @@ EOF
...
@@ -257,6 +257,7 @@ EOF
function
create-flanneld-opts
()
{
function
create-flanneld-opts
()
{
cat
<<
EOF
> ~/kube/default/flanneld
cat
<<
EOF
> ~/kube/default/flanneld
FLANNEL_OPTS="--etcd-endpoints=http://
${
1
}
:4001 \
FLANNEL_OPTS="--etcd-endpoints=http://
${
1
}
:4001 \
--ip-masq \
--iface=
${
2
}
"
--iface=
${
2
}
"
EOF
EOF
}
}
...
...
cluster/vagrant/provision-network-master.sh
View file @
6b830cf2
...
@@ -68,7 +68,7 @@ EOF
...
@@ -68,7 +68,7 @@ EOF
cat
<<
EOF
>/etc/sysconfig/flanneld
cat
<<
EOF
>/etc/sysconfig/flanneld
FLANNEL_ETCD="
${
FLANNEL_ETCD_URL
}
"
FLANNEL_ETCD="
${
FLANNEL_ETCD_URL
}
"
FLANNEL_ETCD_KEY="/coreos.com/network"
FLANNEL_ETCD_KEY="/coreos.com/network"
FLANNEL_OPTIONS="-iface=
${
NETWORK_IF_NAME
}
"
FLANNEL_OPTIONS="-iface=
${
NETWORK_IF_NAME
}
--ip-masq
"
EOF
EOF
# Start flannel
# Start flannel
...
...
cluster/vagrant/provision-network-node.sh
View file @
6b830cf2
...
@@ -33,7 +33,7 @@ function provision-network-node {
...
@@ -33,7 +33,7 @@ function provision-network-node {
cat
<<
EOF
>/etc/sysconfig/flanneld
cat
<<
EOF
>/etc/sysconfig/flanneld
FLANNEL_ETCD="
${
FLANNEL_ETCD_URL
}
"
FLANNEL_ETCD="
${
FLANNEL_ETCD_URL
}
"
FLANNEL_ETCD_KEY="/coreos.com/network"
FLANNEL_ETCD_KEY="/coreos.com/network"
FLANNEL_OPTIONS="-iface=
${
NETWORK_IF_NAME
}
"
FLANNEL_OPTIONS="-iface=
${
NETWORK_IF_NAME
}
--ip-masq
"
EOF
EOF
# Start flannel
# Start flannel
...
...
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