Skip to content

Instantly share code, notes, and snippets.

@zonorti
zonorti / main.go
Created May 19, 2017 12:17
http to k8s deployment patch. gorilla + k8s go client. For local run set KUBECONFIG path to config file
package main
import (
"flag"
"fmt"
"encoding/json"
"github.com/gorilla/mux"
"github.com/gorilla/handlers"
"io"
@zonorti
zonorti / main.go
Created May 19, 2017 12:15
http to k8s deployment patch. gorilla + k8s go client. For local run set KUBECONFIG path to config file
package main
import (
"flag"
"fmt"
"encoding/json"
"github.com/gorilla/mux"
"github.com/gorilla/handlers"
"io"
#!/bin/bash
set -x
IFNAME=$1
if [ "$2" == "-i" ]; then
CONTAINER_IFNAME=$3
shift 2
else
CONTAINER_IFNAME=eth1
fi