Skip to content

Instantly share code, notes, and snippets.

View wallnerryan's full-sized avatar

Ryan Wallner wallnerryan

  • Boston, MA
  • 04:56 (UTC -04:00)
View GitHub Profile
[global]
direct=1
rw=randwrite
size=1G
numjobs=8
time_based
runtime=180
ioengine=libaio
[test-randwrite-1G]
@wallnerryan
wallnerryan / k8s-gcp.md
Last active March 28, 2018 00:56
exact commands ran to standup k8s 1.9.x on gcp with cni / rbac.
# /etc/sysctl.d/99quagga_defaults.conf (but a filter aint one)
# Place this file at the location above and reload the device.
# or run the sysctl -p /etc/sysctl.d/99quagga_defaults.conf
# rhel 7 need to set rp filter https://access.redhat.com/solutions/53031
net.ipv4.conf.all.accept_local = 0
net.ipv4.conf.all.accept_redirects = 0
net.ipv4.conf.all.accept_source_route = 0
net.ipv4.conf.all.bootp_relay = 0
# -*- mode: ruby -*-
# vi: set ft=ruby :
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure("2") do |config|
# The most common configuration options are documented and commented below.
# For a complete reference, please see the online documentation at
@wallnerryan
wallnerryan / ClusterHQ-FlockerHub-Demo.sh
Last active November 18, 2016 19:06 — forked from pcgeek86/ClusterHQ-FlockerHub-Demo.sh
This Bash script is a simple end-to-end example of ClusterHQ Fli + FlockerHub.
#!/bin/bash
set -e
shopt -s expand_aliases
function Prereq {
### Install the ZFS Utilities for Linux
sudo apt install httpie zfsutils-linux -y
echo "Installed ZFS Linux utilities"
}

What you will be doing

In this small, self-guided workshop you will deploy and migrate a Redis database between hosts in a UCP cluster. You'll follow step-by-step instructions to:

  1. Add a Docker License to a Docker UCP Cluster.
  2. Add an extra UCP node the cluster so we can migrate a database between hosts.
  3. Use Docker compose to deploy an app with Redis backed by Flocker volumes and add some data to the app.
  4. Destroy the app. Argh!
  5. Start the app back up on a different node to demonstrate data movement. Phew.
{
"id":"marathon-demo-riak",
"apps":[
{
"id":"riak1",
"container":{
"type":"DOCKER",
"docker":{
"image":"wallnerryan/riak-calico-mesos",
"network":"BRIDGE",

Here is the Marathon JSON used to deploy Riak on Mesos backed by Flocker and Calico Docker Networking

{
	"id": "marathon-demo-riak",
	"apps": [{
		"id": "riak1",
		"container": {
			"type": "DOCKER",
version: '2'
services:
web:
image: binocarlos/moby-counter
ports:
- "80:80"
links:
- "redis:redis"