Skip to content

Instantly share code, notes, and snippets.

View yaronr's full-sized avatar

Yaron Rosenbaum yaronr

View GitHub Profile
{
"id": "docker-registry",
"kind": "Pod",
"apiVersion": "v1beta1",
"desiredState": {
"manifest": {
"version": "v1beta1",
"id": "docker-registry",
"containers": [{
"name": "master",
@yaronr
yaronr / bootstrap-consul.sh
Last active September 27, 2020 17:54
Bootstrap Consul on CoreOS
#!/bin/bash
source /etc/environment
hostname=$(cat /etc/machine-id)
machines=$(etcdctl ls /consul.io/bootstrap/machines)
#If there are 'machines' then the cluster has been initialised.
if [ -z "$machines" ]
then
flags="${flags} -bootstrap"