Created
January 15, 2017 12:39
-
-
Save weldpua2008/a01f00a01484958530b90cde807f293c to your computer and use it in GitHub Desktop.
Kibana service for CoreOS
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=kibana | |
| # Requirements | |
| Requires=etcd.service | |
| Requires=docker.service | |
| Requires=elasticsearch.service | |
| # Dependency ordering | |
| After=etcd.service | |
| After=docker.service | |
| After=elasticsearch.service | |
| [Service] | |
| TimeoutSec=0 | |
| Restart=always | |
| RestartSec=15s | |
| #KillMode=process | |
| EnvironmentFile=/etc/environment | |
| #ExecStartPre=/usr/bin/docker pull kibana | |
| ExecStartPre=-/usr/bin/docker kill kibana | |
| ExecStartPre=-/usr/bin/docker stop kibana | |
| ExecStartPre=-/usr/bin/docker rm kibana | |
| ExecStart=/usr/bin/docker run --rm=true \ | |
| --name kibana \ | |
| --link elasticsearch:elasticsearch \ | |
| -p 5601:5601 \ | |
| -p 5601:5601/udp \ | |
| kibana:4.2 -e http://elasticsearch:9200 | |
| ExecStartPost=/usr/bin/etcdctl set /kibana/host ${COREOS_PUBLIC_IPV4} | |
| ExecStop=/usr/bin/docker stop -t 10 kibana | |
| ExecStopPost=/usr/bin/etcdctl rm /kibana/host | |
| [Install] | |
| WantedBy=multi-user.target | |
| [X-Fleet] | |
| X-Conflicts=kibana.service |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment