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
1152471d
Commit
1152471d
authored
Oct 12, 2014
by
Pieter Noordhuis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Split reactor files
There now are reactor files to run highstate on: * New nodes only * Master nodes * Minion nodes
parent
d51c0719
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
28 additions
and
15 deletions
+28
-15
salt-master.sh
cluster/gce/templates/salt-master.sh
+1
-1
highstate-all.sls
cluster/saltbase/reactor/highstate-all.sls
+0
-9
highstate-masters.sls
cluster/saltbase/reactor/highstate-masters.sls
+10
-0
highstate-minions.sls
cluster/saltbase/reactor/highstate-minions.sls
+11
-0
highstate-new.sls
cluster/saltbase/reactor/highstate-new.sls
+2
-3
provision-master.sh
cluster/vagrant/provision-master.sh
+1
-1
salt-master.sh
cluster/vsphere/templates/salt-master.sh
+3
-1
No files found.
cluster/gce/templates/salt-master.sh
View file @
1152471d
...
...
@@ -38,7 +38,7 @@ cat <<EOF >/etc/salt/master.d/reactor.conf
# React to new minions starting by running highstate on them.
reactor:
- 'salt/minion/*/start':
- /srv/reactor/
start
.sls
- /srv/reactor/
highstate-new
.sls
EOF
# Install Salt
...
...
cluster/saltbase/reactor/highstate-all.sls
deleted
100644 → 0
View file @
d51c0719
# This runs highstate on the ALL nodes.
#
# Used from the vSphere provider. The IP addresses of the minons are passed to
# the apiserver as arguments and every minion has static routes to every other
# minion. This means every node should be refreshed when a node is added.
#
highstate_run:
cmd.state.highstate:
- tgt: '*'
cluster/saltbase/reactor/highstate-masters.sls
0 → 100644
View file @
1152471d
# This runs highstate on the master node(s).
#
# Some of the cluster deployment scripts pass the list of minion addresses to
# the apiserver as a command line argument. This list needs to be updated if a
# new minion is started, so run highstate on the master(s) when this happens.
#
highstate_master:
cmd.state.highstate:
- tgt: 'roles:kubernetes-master'
- expr_form: grain
cluster/saltbase/reactor/highstate-minions.sls
0 → 100644
View file @
1152471d
# This runs highstate on the minion nodes.
#
# Some of the cluster deployment scripts use the list of minions on the minions
# themselves (for example: every minion is configured with static routes to
# every other minion on a vSphere deployment). To propagate changes throughout
# the pool, run highstate on all minions whenever a single minion starts.
#
highstate_minions:
cmd.state.highstate:
- tgt: 'roles:kubernetes-pool'
- expr_form: grain
cluster/saltbase/reactor/
start
.sls
→
cluster/saltbase/reactor/
highstate-new
.sls
View file @
1152471d
# This runs highstate on the target node
highstate_run:
# This runs highstate only on the NEW node, regardless of type.
highstate_new:
cmd.state.highstate:
- tgt: {{ data['id'] }}
cluster/vagrant/provision-master.sh
View file @
1152471d
...
...
@@ -92,7 +92,7 @@ cat <<EOF >/etc/salt/master.d/reactor.conf
# React to new minions starting by running highstate on them.
reactor:
- 'salt/minion/*/start':
- /srv/reactor/
start
.sls
- /srv/reactor/
highstate-new
.sls
EOF
cat
<<
EOF
>/etc/salt/master.d/salt-output.conf
...
...
cluster/vsphere/templates/salt-master.sh
View file @
1152471d
...
...
@@ -42,7 +42,9 @@ cat <<EOF >/etc/salt/master.d/reactor.conf
# React to new minions starting by running highstate on them.
reactor:
- 'salt/minion/*/start':
- /srv/reactor/highstate-all.sls
- /srv/reactor/highstate-new.sls
- /srv/reactor/highstate-masters.sls
- /srv/reactor/highstate-minions.sls
EOF
mkdir
-p
/srv/salt/nginx
...
...
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