Skip to content

Instantly share code, notes, and snippets.

View grampelberg's full-sized avatar

Thomas Rampelberg grampelberg

View GitHub Profile
# Cluster management tools.
# See https://github.com/grampelberg/k8s-clusters for updates and documentation.
export CLUSTER_NAME ?= $(shell cat tmp/current 2>/dev/null || echo $$(whoami)-dev)
export MACHINE_TYPE ?= n1-standard-2
export DISK_SIZE ?= 100
export MAX_NODES ?= 10
export NETWORK ?= dev
export PROJECT ?= foobar
export VERSION ?= latest
.PHONY: build
build:
ifeq ($(OS),Darwin)
$(MAKE) build-darwin
endif
$(MAKE) build-linux
.PHONY: build
build: build-$(OS)
command: ["python", "-c"]
args:
- |-
import time
while True:
print('.')
time.sleep(5)
# Cluster management tools.
export CLUSTER_NAME ?= $(shell cat tmp/current 2>/dev/null || echo $$(whoami)-dev)
export MACHINE_TYPE ?= n1-standard-2
export DISK_SIZE ?= 100
export MAX_NODES ?= 10
export NETWORK ?= dev
export PROJECT ?= runconduit
export VERSION ?= latest
export ZONE ?= us-west1-a
---
apiVersion: apps/v1beta1
kind: Deployment
metadata:
name: slow-cooker
namespace: leaderboard
spec:
replicas: 1
template:
---
# Source: traefik/templates/default-cert-secret.yaml
apiVersion: v1
kind: Secret
metadata:
name: release-name-traefik-default-cert
labels:
app: traefik
chart: "traefik-1.55.1"
---
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: root
annotations:
seccomp.security.alpha.kubernetes.io/allowedProfileNames: '*'
spec:
privileged: true
apiVersion: apiregistration.k8s.io/v1
kind: APIService
metadata:
creationTimestamp: 2018-12-09T19:26:28Z
labels:
app: prometheus-adapter
chart: prometheus-adapter-v0.2.1
heritage: Tiller
release: linkerd
name: v1beta1.custom.metrics.k8s.io
kubectl get -n nodevoto deploy/web -o yaml \
| linkerd inject - \
| kubectl apply -f -
linkerd dashboard