Skip to content

Instantly share code, notes, and snippets.

@toszo
toszo / health-monitor.sh
Created March 19, 2019 17:14
GKE Monitoring
# We simply kill the process when there is a failure. Another systemd service will
# automatically restart the process.
function docker_monitoring {
while [ 1 ]; do
if ! timeout 10 docker ps > /dev/null; then
echo "Docker daemon failed!"
pkill docker
# Wait for a while, as we don't want to kill it again before it is really up.
sleep 30
else
kind: simplified-datafile
version: 0.2.0
environment_name: Playground
azure:
subscription_name: YOUR-SUBSCRIPTION-NAME
resource_group: 'playground'
location: 'West Europe'
image_offer: RHEL #UbuntuServer
boot_storage: 'epiplaygrnd1'
image_sku: 7.5 #18.04-LTS