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
c1a4a433
Commit
c1a4a433
authored
Jan 28, 2015
by
Tim Hockin
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3857 from brendandburns/sanity
Add monit support for restarting etcd to the master.
parents
ac551220
c7c11d77
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
0 deletions
+30
-0
etcd
cluster/saltbase/salt/monit/etcd
+10
-0
init.sls
cluster/saltbase/salt/monit/init.sls
+19
-0
top.sls
cluster/saltbase/salt/top.sls
+1
-0
No files found.
cluster/saltbase/salt/monit/etcd
0 → 100644
View file @
c1a4a433
check process etcd with pidfile /var/run/etcd.pid
group etcd
start program = "/etc/init.d/etcd start"
stop program = "/etc/init.d/etcd stop"
if failed
host 127.0.0.1
port 4001
protocol http
request "/v2/keys/"
then restart
cluster/saltbase/salt/monit/init.sls
0 → 100644
View file @
c1a4a433
monit:
pkg:
- installed
/etc/monit/conf.d/etcd:
file:
- managed
- source: salt://monit/etcd
- user: root
- group: root
- mode: 644
monit-service:
service:
- running
- name: monit
- watch:
- pkg: monit
- file: /etc/monit/conf.d/etcd
cluster/saltbase/salt/top.sls
View file @
c1a4a433
...
...
@@ -33,6 +33,7 @@ base:
- kube-apiserver
- kube-controller-manager
- kube-scheduler
- monit
- nginx
- kube-client-tools
- logrotate
...
...
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