Skip to content

Instantly share code, notes, and snippets.

@ant31
ant31 / cookieapp-opencompose.yaml
Last active May 12, 2017 20:08
jsonnet + opencompose realexample
local opencompose = import "lib/opencompose.libsonnet";
function(params={}, namespace="default")
opencompose.createServices({
web: {
image: "quay.io/ant31/cookiapp:0.5.0",
domain: "cookieapp.kubespray.com",
env: {"database": "postgres://postgres.default.svc"},
ports: [{name: "http", port: 80}],
@tamalsaha
tamalsaha / ksh
Last active September 21, 2017 05:56
Kubectl exec with working terminal
#!/bin/sh
if [ "$1" = "" ]; then
echo "Usage: ksh <pod> [flags_to_kubectl]"
exit 1
fi
POD=$1
shift
COLUMNS=`tput cols`