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
c676f8da
Commit
c676f8da
authored
Mar 21, 2016
by
Mike Danese
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove unused static-routes from salt
parent
b077b685
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
0 additions
and
70 deletions
+0
-70
README.md
cluster/saltbase/salt/README.md
+0
-1
if-down
cluster/saltbase/salt/static-routes/if-down
+0
-16
if-up
cluster/saltbase/salt/static-routes/if-up
+0
-16
init.sls
cluster/saltbase/salt/static-routes/init.sls
+0
-30
refresh
cluster/saltbase/salt/static-routes/refresh
+0
-7
No files found.
cluster/saltbase/salt/README.md
View file @
c676f8da
...
@@ -24,7 +24,6 @@ Config | GCE | Vagrant | AWS |
...
@@ -24,7 +24,6 @@ Config | GCE | Vagrant | AWS |
[
kubelet
](
kubelet/
)
| M n | M n | M n |
[
kubelet
](
kubelet/
)
| M n | M n | M n |
[
logrotate
](
logrotate/
)
| M n | n | M n |
[
logrotate
](
logrotate/
)
| M n | n | M n |
[
supervisord
](
supervisor/
)
| M n | M n | M n |
[
supervisord
](
supervisor/
)
| M n | M n | M n |
[
static-routes
](
static-routes/
)
(
vsphere
only) | | | |
[
base
](
base.sls
)
| M n | M n | M n |
[
base
](
base.sls
)
| M n | M n | M n |
[
kube-client-tools
](
kube-client-tools.sls
)
| M | M | M |
[
kube-client-tools
](
kube-client-tools.sls
)
| M | M | M |
...
...
cluster/saltbase/salt/static-routes/if-down
deleted
100644 → 0
View file @
b077b685
#!/bin/bash
[
"
$IFACE
"
==
"eth0"
]
||
exit
0
{
%
for
host, ip_addrs
in
salt[
'mine.get'
](
'roles:kubernetes-pool'
,
'network.ip_addrs'
,
'grain'
)
.items
()
%
}
{
%
set
network_ipaddr
=
None %
}
{
%
if
salt[
'network.ip_addrs'
](
'eth0'
)
is defined %
}
{
%
set
network_ipaddr
=
salt[
'network.ip_addrs'
](
'eth0'
)[
0] %
}
{
%
elif
salt[
'network.ip_addrs'
](
'local'
)
is defined %
}
{
%
set
network_ipaddr
=
salt[
'network.ip_addrs'
](
'local'
)[
0] %
}
{
% endif %
}
{
%
if
network_ipaddr is defined and ip_addrs[0]
!=
network_ipaddr %
}
{
%
set
cidr
=
salt[
'mine.get'
](
host,
'grains.items'
)[
host][
'cbr-cidr'
]
%
}
route del
-net
{{
cidr
}}
{
% endif %
}
{
% endfor %
}
cluster/saltbase/salt/static-routes/if-up
deleted
100644 → 0
View file @
b077b685
#!/bin/bash
[
"
$IFACE
"
==
"eth0"
]
||
exit
0
{
%
for
host, ip_addrs
in
salt[
'mine.get'
](
'roles:kubernetes-pool'
,
'network.ip_addrs'
,
'grain'
)
.items
()
%
}
{
%
set
network_ipaddr
=
None %
}
{
%
if
salt[
'network.ip_addrs'
](
'eth0'
)
%
}
{
%
set
network_ipaddr
=
salt[
'network.ip_addrs'
](
'eth0'
)[
0] %
}
{
%
elif
salt[
'network.ip_addrs'
](
'local'
)
%
}
{
%
set
network_ipaddr
=
salt[
'network.ip_addrs'
](
'local'
)
.first %
}
{
% endif %
}
{
%
if
network_ipaddr and ip_addrs[0]
!=
network_ipaddr %
}
{
%
set
cidr
=
salt[
'mine.get'
](
host,
'grains.items'
)[
host][
'cbr-cidr'
]
%
}
route add
-net
{{
cidr
}}
gw
{{
ip_addrs[0]
}}
{
% endif %
}
{
% endfor %
}
cluster/saltbase/salt/static-routes/init.sls
deleted
100644 → 0
View file @
b077b685
# Add static routes to every minion to enable pods in the 10.244.x.x range to
# reach each other. This is suboptimal, but necessary to let every pod have
# its IP and have pods between minions be able to talk with each other.
# This will be obsolete when we figure out the right way to make this work.
/etc/network/if-up.d/static-routes:
file.managed:
- source: salt://static-routes/if-up
- template: jinja
- user: root
- group: root
- mode: 755
/etc/network/if-down.d/static-routes:
file.managed:
- source: salt://static-routes/if-down
- template: jinja
- user: root
- group: root
- mode: 755
refresh-routes:
cmd.wait_script:
- source: salt://static-routes/refresh
- cwd: /etc/network/
- user: root
- group: root
- watch:
- file: /etc/network/if-up.d/static-routes
- file: /etc/network/if-down.d/static-routes
cluster/saltbase/salt/static-routes/refresh
deleted
100644 → 0
View file @
b077b685
#!/bin/bash
# Fake an ifup/ifdown event
export
IFACE
=
eth0
if
-down
.d/static-routes
||
true
if
-up
.d/static-routes
||
true
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