Skip to content

Instantly share code, notes, and snippets.

View kylegato's full-sized avatar

Kyle Gato kylegato

View GitHub Profile
@kylegato
kylegato / get-kube-aws.sh
Created June 22, 2017 18:32
fetch specified version of kube-aws && configure symlink in /usr/local/bin
#!/usr/bin/env bash
#set -v
# TODO:
# if we continue to use shell scripts here need to provide means for finding latest, aws-kube doesn't have a latest txt file like kubernetes has for other projects where we could wget it tho.
# so for now we'd have to know which version. we could change to require a version number too not sure best method to get that other than hitting the releases page and clicking on the link of the latest ATM.
kernel=$(uname -s)
case "${kernel}" in
Darwin)
@kylegato
kylegato / remote-ssh-kube-commands.sh
Created June 22, 2017 18:19 — forked from cmcconnell1/remote-ssh-kube-commands.sh
Run remote command_list on all of the specified kubernetes clusters in AWS EC2: controllers, etcd, or workers
#!/usr/bin/env bash
#
# Author: Chris McConnell
#
# Summary:
# Run remote command_list on all of the specified kubernetes clusters: controllers, etcd, or workers.
#
# Why:
# We have kubernetes and want to run CM jobs / commands on the kube nodes, but CoreOS doesnt have python etc. on it so we can't use CM tools here unless we hack 'em up (which shouldn't), so shell always works.
# Plan to continue to build tools on this and we can take output of this script and slurp up into database, feed to graylog, etc.
@kylegato
kylegato / mysql_rep.sh
Last active December 15, 2015 02:49 — forked from onecooltaco/mysql_rep.sh
#!/bin/bash
#
# A mysql replication plugin for the check_mk nagios system.
# Place me in /usr/lib/check_mk_agent/local on the client
#
# Hereward Cooper <coops@iomart.com> - 16/06/11
# Modified by Kyle Gato <kyle.gato@gmail.com> - 18/03/2013
MYSQL_USER="MYSQL_ROOT_USER"
MYSQL_PASS="ROOT_PASSWORD"