Skip to content

Instantly share code, notes, and snippets.

View wuestkamp's full-sized avatar

Kim Wuestkamp wuestkamp

View GitHub Profile
apiVersion: v1
kind: Pod
metadata:
labels:
run: pod1
my-label: test
name: pod1
spec:
containers:
- args:
kind: PersistentVolume
apiVersion: v1
metadata:
name: task-pv-volume
labels:
id: vol1
spec:
storageClassName: manual
capacity:
storage: 50Mi
kind: PersistentVolumeClaim
apiVersion: v1
metadata:
name: task-pv-claim
spec:
storageClassName: manual
accessModes:
- ReadWriteOnce
resources:
requests:
apiVersion: batch/v1beta1
kind: CronJob
metadata:
creationTimestamp: null
labels:
run: cronjob1
name: cronjob1
spec:
concurrencyPolicy: Allow
jobTemplate:
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: nginx-deployment
spec:
replicas: 3
selector:
matchLabels:
app: nginx-deployment
template:
apiVersion: v1
kind: Service
metadata:
name: sf-service
spec:
ports:
- name: "80"
port: 80
targetPort: 80
selector:
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: sf-deployment
labels:
id: sf-deployment
spec:
replicas: 1
selector:
matchLabels:
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: sf-deployment
labels:
id: sf-deployment
spec:
replicas: 1
selector:
matchLabels:
apiVersion: v1
kind: Pod
metadata:
labels:
run: pod1
name: pod1
spec:
volumes:
- name: sec-vol
secret:
apiVersion: v1
kind: Pod
metadata:
labels:
run: pod1
name: pod1
spec:
volumes:
- name: sec-vol
secret: