Skip to content

Instantly share code, notes, and snippets.

Avatar

Kim Wuestkamp wuestkamp

View GitHub Profile
View snow2.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: snow
name: snow
spec:
replicas: 3
selector:
View snow.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: snow
name: snow
spec:
replicas: 3
selector:
View holiday.yaml
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: holiday
name: holiday
spec:
containers:
- command:
View pod.yaml
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
run: secret-manager
name: secret-manager
namespace: ns-secure
spec:
volumes:
View statefulset.yaml
apiVersion: v1
kind: Service
metadata:
name: nginx
spec:
ports:
- port: 80
name: sts
clusterIP: None
selector:
View pod_pvc.yaml
# PVC that uses the default storageclass
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: pvc-one
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
View example.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: agent
spec:
replicas: 8
selector:
matchLabels:
id: agent-pod
template:
View example.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: agent
spec:
replicas: 8
selector:
matchLabels:
id: agent-pod
template:
View example.yaml
apiVersion: v1
kind: Pod
metadata:
name: runner
namespace: tmp
spec:
terminationGracePeriodSeconds: 60
volumes:
- name: share
emptyDir: {}
View example.yaml
apiVersion: v1
kind: Pod
metadata:
name: runner
spec:
terminationGracePeriodSeconds: 3600 # one hour!
containers:
- command:
- sh
- -c