Skip to content

Instantly share code, notes, and snippets.

@shcallaway
Created July 19, 2019 18:02
Show Gist options
  • Save shcallaway/0ee30e0d095695e00178afd7206980ca to your computer and use it in GitHub Desktop.
Save shcallaway/0ee30e0d095695e00178afd7206980ca to your computer and use it in GitHub Desktop.
Kubernetes pod manifest for messing around in-cluster
apiVersion: v1
kind: Pod
metadata:
name: bastion
labels:
name: bastion
namespace: production
spec:
containers:
- name: bastion
image: postgres:latest
resources:
requests:
memory: "2Gi"
cpu: "2"
volumeMounts:
- mountPath: /tmp
name: data
volumes:
- name: data
persistentVolumeClaim:
claimName: bastion
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
labels:
name: bastion
name: bastion
namespace: production
spec:
accessModes:
- ReadWriteOnce
dataSource: null
resources:
requests:
storage: 30Gi
storageClassName: gp2
volumeMode: Filesystem
---
apiVersion: policy/v1beta1
kind: PodDisruptionBudget
metadata:
name: bastion
labels:
name: bastion
spec:
minAvailable: 1
selector:
matchLabels:
name: bastion
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment