Last active
August 27, 2021 15:34
-
-
Save cfchase/79f35dc93eb62c1d5c7417c09442cbfb to your computer and use it in GitHub Desktop.
Autoscaling buffer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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