Tweak K8s deployment

This commit is contained in:
Garrett Mills 2023-01-15 19:48:22 -06:00
parent 17b51b82cc
commit 3e3ce01bc5

View File

@ -5,6 +5,7 @@ metadata:
name: garrettmills-dev
namespace: default
spec:
replicas: 2
selector:
matchLabels:
app: garrettmills-dev
@ -15,6 +16,17 @@ spec:
labels:
app: garrettmills-dev
spec:
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values: ['garrettmills-dev']
topologyKey: 'kubernetes.io/hostname'
containers:
- name: garrettmills-www
image: registry.millslan.net/garrettmills/www