Add consul and name the agent
This commit is contained in:
@@ -12,8 +12,18 @@
|
||||
5. Host the ignition file for the installer to see
|
||||
Run `python3 -m http.server 8080` (from the folder with the ignition files)
|
||||
6. Install CoreOS
|
||||
1. Get the OS on disk for the first time
|
||||
`sudo coreos-installer install /dev/vda --insecure-ignition --ignition-url http://192.168.1.115:8080/example.ign`
|
||||
1. Get the OS on disk for tshe first time
|
||||
`sudo coreos-installer install /dev/vda --insecure-ignition --ignition-url http://192.168.1.115:8080/jaglan-beta-m42.ign`
|
||||
2. Reboot to injest ignition file and provision
|
||||
`sudo reboot`
|
||||
ssh should now work with the user's ssh keys from ignition file
|
||||
ssh should now work with the user's ssh keys from ignition file
|
||||
3. Wait, the initial service will install the hashistack and reboot again
|
||||
|
||||
7. Boostrapping the consul cluster
|
||||
1. Run `consul agent -boostrap-expect 1 -bind 192.168.1.115 -ui -config-file ./etc/consul.d/consul.hcl` locally
|
||||
2. Check the ui at http://localhost:8500/ui to ensure that the expected nodes are shown
|
||||
|
||||
# Useful Debugging Commands
|
||||
`sudo systemctl start consul`
|
||||
Read consul startup logs: `sudo journalctl -xeu consul.service`
|
||||
Start the consul UI locally: `consul agent -bind 192.168.1.115 -ui -config-file ./etc/consul.d/consul.hcl`
|
||||
|
||||
Reference in New Issue
Block a user