Skip to content

Instantly share code, notes, and snippets.

@mseiwald
Last active November 24, 2021 00:45
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mseiwald/d780b9747452a6cad24231a13b32e303 to your computer and use it in GitHub Desktop.
Save mseiwald/d780b9747452a6cad24231a13b32e303 to your computer and use it in GitHub Desktop.
---
apiVersion: scheduling.k8s.io/v1beta1
kind: PriorityClass
metadata:
name: overprovisioning
value: -1
globalDefault: false
description: "Priority class used by overprovisioning."
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: overprovisioning
namespace: kube-system
spec:
replicas: 1
selector:
matchLabels:
run: overprovisioning
template:
metadata:
labels:
run: overprovisioning
spec:
priorityClassName: overprovisioning
containers:
- name: reserve-resources
image: k8s.gcr.io/pause
resources:
requests:
cpu: 4
memory: 8Gi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment