36 lines
986 B
YAML
36 lines
986 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: capacity-reservation
|
|
# You should decide what namespace to deploy this into
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: capacity-placeholder
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: capacity-placeholder
|
|
annotations:
|
|
kubernetes.io/description: "Capacity reservation"
|
|
spec:
|
|
priorityClassName: placeholder
|
|
affinity: # Try to place these overhead Pods on different nodes
|
|
# if possible
|
|
podAntiAffinity:
|
|
preferredDuringSchedulingIgnoredDuringExecution:
|
|
- labelSelector:
|
|
matchLabels:
|
|
app: placeholder
|
|
topologyKey: "kubernetes.io/hostname"
|
|
containers:
|
|
- name: pause
|
|
image: registry.k8s.io/pause:3.6
|
|
resources:
|
|
requests:
|
|
cpu: "50m"
|
|
memory: "512Mi"
|
|
limits:
|
|
memory: "512Mi"
|