Skip to content

Commit

Permalink
refactor: move node affinity to upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
NGPixel committed May 14, 2024
1 parent 3ea70f2 commit 0a3bb9e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 37 deletions.
20 changes: 1 addition & 19 deletions k8s/datatracker.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: deployment
name: datatracker
spec:
replicas: 1
revisionHistoryLimit: 2
Expand All @@ -15,24 +15,6 @@ spec:
labels:
app: datatracker
spec:
# -------------------------------------------------------
# Node Affinity
# -------------------------------------------------------
nodeSelector:
doks.digitalocean.com/node-pool: pool-apollo-hperf
affinity:
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- mailarchive
topologyKey: "kubernetes.io/hostname"
# -------------------------------------------------------
securityContext:
runAsNonRoot: true
containers:
Expand Down
18 changes: 0 additions & 18 deletions k8s/rabbitmq.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,24 +14,6 @@ spec:
labels:
app: rabbitmq
spec:
# -------------------------------------------------------
# Node Affinity
# -------------------------------------------------------
nodeSelector:
doks.digitalocean.com/node-pool: pool-apollo-hperf
affinity:
podAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: app
operator: In
values:
- datatracker
topologyKey: "kubernetes.io/hostname"
# -------------------------------------------------------
securityContext:
runAsNonRoot: true
initContainers:
Expand Down

0 comments on commit 0a3bb9e

Please sign in to comment.