Skip to content

Instantly share code, notes, and snippets.

killcity / rancher_kuberouter_addon.yaml
Created Dec 11, 2019
kube-router hack for rancher
View rancher_kuberouter_addon.yaml
apiVersion: v1
kind: ConfigMap
name: kube-router-cfg
namespace: kube-system
tier: node
k8s-app: kube-router
cni-conf.json: |
killcity /
Created Mar 20, 2019 — forked from innovia/
Create a service account and generate a kubeconfig file for it - this will also set the default namespace for the user
set -e
set -o pipefail
# Add user to k8s using service account, no RBAC (must create RBAC after this script)
if [[ -z "$1" ]] || [[ -z "$2" ]]; then
echo "usage: $0 <service_account_name> <namespace>"
exit 1
killcity /
Last active Mar 11, 2018
Docker Swarm with Macvlan, Consul and Autoscaling -


I have moved this to my blog. All future updates will be made here:

Docker Swarm with Macvlan, Consul and Autoscaling


This will get you routable containers with IPs on your existing subnets, advertising to Consul. They will also be scalable and placed across a cluster of Swarm hosts. It's assumed that you are already running Consul, so if not, there are a ton of tutorials out there. It's also assumed you know how to install Docker and various Linux kernels.

Bonus: We add an autoscaling API called Orbiter (

I just want to run containers, like now, on my existing infrastructure and networks!

You can’t perform that action at this time.