Skip to content

Instantly share code, notes, and snippets.

View oioiben's full-sized avatar

bentopr oioiben

  • localhost
View GitHub Profile
@oioiben
oioiben / K8s resource types
Created June 7, 2019 08:12
K8s resource types
apiVersion: apps/v1 # for versions before 1.9.0 use apps/v1beta2
kind: Deployment
metadata:
name: go-test-app-deployment
spec:
selector:
matchLabels:
app: go-test-app
replicas: 2 # tells deployment to run 2 pods matching the template
template:
#!/bin/bash
function notify(){
printf "$@\n"
exit 1
}
[ "$UID" -eq 0 ] || notify "Must run as root!"
function prep(){
apiVersion: v1
kind: ConfigMap
metadata:
name: kube-router-cfg
namespace: kube-system
labels:
tier: node
k8s-app: kube-router
data:
cni-conf.json: |