This file contains 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
Important Links for Consul and Nomad | |
Introductory Videos | |
Quick watch; explains basics; grab a cup of coffee/tea. | |
https://www.youtube.com/watch?v=wyRtz_tdJes | |
https://www.youtube.com/watch?v=s_Fm9UtL4YU | |
Consul | |
Basics and Agent Configuration |
This file contains 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
#!/bin/bash | |
set -u | |
set -e | |
trap _error_exit ERR | |
_error_exit() | |
{ | |
echo "ERROR EXIT" |
This file contains 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
$ cat generate_job_file.bash | |
#!/bin/bash | |
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 | |
set -u | |
job_file="zookeeper.nomad" | |
cat > ${job_file} <<EOF |
This file contains 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
#!/bin/bash | |
# vim: tabstop=4 expandtab shiftwidth=4 softtabstop=4 | |
set -u | |
set -e | |
CONSUL_VERSION=${CONSUL_VERSION:-"1.9.4"} | |
NOMAD_VERSION=${NOMAD_VERSION:-"1.0.4"} | |
CNI_PLUGINS_VERSION=${CNI_PLUGINS_VERSION:-"0.9.1"} |
This file contains 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
gowebhello root page | |
https://github.com/udhos/gowebhello is a simple golang replacement for 'python -m SimpleHTTPServer'. | |
Welcome! | |
gowebhello version 0.7 runtime go1.12.5 os=linux arch=amd64 | |
Keepalive: true | |
Application banner: Welcome to FOO | |
... | |
... |
This file contains 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
ID = 9f16354b | |
Eval ID = 075076bc | |
Name = bar_docker.gowebhello[1] | |
Node ID = 9bab72b1 | |
Node Name = client1 | |
Job ID = bar_docker | |
Job Version = 0 | |
Client Status = running | |
Client Description = Tasks are running | |
Desired Status = run |
This file contains 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
==> Monitoring evaluation "075076bc" | |
Evaluation triggered by job "bar_docker" | |
Allocation "9f16354b" created: node "9bab72b1", group "gowebhello" | |
Allocation "b86d8946" created: node "37daf354", group "gowebhello" | |
Evaluation status changed: "pending" -> "complete" | |
==> Evaluation "075076bc" finished with status "complete" |
This file contains 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
ID = 7794b538 | |
Eval ID = a994bbf0 | |
Name = foo_docker.gowebhello[1] | |
Node ID = 9bab72b1 | |
Node Name = client1 | |
Job ID = foo_docker | |
Job Version = 1 | |
Client Status = running | |
Client Description = Tasks are running | |
Desired Status = run |
This file contains 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
==> Monitoring evaluation "a994bbf0" | |
Evaluation triggered by job "foo_docker" | |
Allocation "7794b538" created: node "9bab72b1", group "gowebhello" | |
Allocation "eecceffc" modified: node "37daf354", group "gowebhello" | |
Evaluation status changed: "pending" -> "complete" | |
==> Evaluation "a994bbf0" finished with status "complete" |
This file contains 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
==> Monitoring evaluation "bb140467" | |
Evaluation triggered by job "fabio_docker" | |
Allocation "1a6a5587" created: node "621f4411", group "fabio" | |
Evaluation status changed: "pending" -> "complete" | |
==> Evaluation "bb140467" finished with status "complete" |
NewerOlder