Tweak K8s deployment
This commit is contained in:
parent
17b51b82cc
commit
3e3ce01bc5
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user