Skip to content

Instantly share code, notes, and snippets.

@ssbostan
Created March 30, 2023 16:48
Show Gist options
  • Save ssbostan/0c64a69f591ef2e4592536b53d2f5144 to your computer and use it in GitHub Desktop.
Save ssbostan/0c64a69f591ef2e4592536b53d2f5144 to your computer and use it in GitHub Desktop.
Kubernetes Hacks and Tricks - #7 Pod and Container Resource and QoS classes
apiVersion: apps/v1
kind: Deployment
metadata:
name: test-guaranteed
spec:
replicas: 15
selector:
matchLabels:
app: test-guaranteed
template:
metadata:
labels:
app: test-guaranteed
spec:
containers:
- name: test
image: nginx:alpine
resources:
requests:
memory: 200Mi
cpu: 500m
limits:
memory: 200Mi
cpu: 500m
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment