Skip to content

Instantly share code, notes, and snippets.

View wuestkamp's full-sized avatar

Kim Wuestkamp wuestkamp

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