Skip to content

Instantly share code, notes, and snippets.

View grampelberg's full-sized avatar

Thomas Rampelberg grampelberg

View GitHub Profile
kubectl -n nodevoto port-forward \
$(kubectl -n nodevoto get po -l app=web-svc -oname | cut -d/ -f 2) \
8080:80
kubectl get -n nodevoto deployments
curl https://run.linkerd.io/nodevoto.yml | kubectl apply -f –
.PHONY: create
create: bootstrap
@# Create a cluster in GKE with some sane defaults.
@# Options:
@#
@# CLUSTER_NAME :: ${CLUSTER_NAME}
@# MACHINE_TYPE :: ${MACHINE_TYPE}
@# MAX_NODES :: ${MAX_NODES}
@# NETWORK :: ${NETWORK}
@# PROJECT :: ${PROJECT}
@grampelberg
grampelberg / linkerd-contribution.md
Last active May 4, 2018 09:17
Getting involved with Linkerd
#!/bin/bash
# usage: ./graph.bash | dot -Tpng >foo.png && open foo.png
function deployments() {
conduit stat deployments --all-namespaces \
| awk '{ print $1 "|" $2 }' \
| tail -n+2
}
@grampelberg
grampelberg / openInTabs.js
Created April 9, 2018 13:19
pinboard tampermonkey
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://pinboard.in/u:pyronicide/t:daily
// @grant GM_openInTab
// @require https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.min.js
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am grampelberg on github.
  • I am grampelberg (https://keybase.io/grampelberg) on keybase.
  • I have a public key ASBb4gDwiihMdd__lTrG16mgZO_TAGBEzjpOuAvluusewgo

To claim this, I am signing this object:

apiVersion: v1
kind: Pod
metadata:
name: fileshare
spec:
containers:
- image: alpine
name: fileshare
command:
- /bin/sh
# Tiller
apiVersion: v1
kind: ServiceAccount
metadata:
name: tiller
namespace: kube-system
---