Skip to content

Instantly share code, notes, and snippets.

@cfchase
Last active August 27, 2021 15:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cfchase/79f35dc93eb62c1d5c7417c09442cbfb to your computer and use it in GitHub Desktop.
Save cfchase/79f35dc93eb62c1d5c7417c09442cbfb to your computer and use it in GitHub Desktop.
Autoscaling buffer
kind: Deployment
apiVersion: apps/v1
metadata:
name: autoscaling-buffer
namespace: rhods-notebooks
spec:
replicas: 4
selector:
matchLabels:
app: autoscaling-buffer
template:
metadata:
labels:
app: autoscaling-buffer
spec:
containers:
- name: autoscaling-buffer
image: 'gcr.io/google_containers/pause-amd64:3.2'
resources:
limits:
cpu: '4'
memory: 16Gi
requests:
cpu: '4'
memory: 16Gi
imagePullPolicy: IfNotPresent
restartPolicy: Always
priorityClassName: autoscaling-buffer
apiVersion: scheduling.k8s.io/v1
description: This priority class is to be used by the autoscaling buffer pod only
kind: PriorityClass
metadata:
name: autoscaling-buffer
preemptionPolicy: PreemptLowerPriority
value: -5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment