Skip to content

Commit

Permalink
chore: remove affinity
Browse files Browse the repository at this point in the history
  • Loading branch information
joryirving committed Feb 22, 2024
1 parent 8ee9e96 commit 2fc458a
Show file tree
Hide file tree
Showing 13 changed files with 1 addition and 99 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,6 @@ spec:
values:
- amd64
- arm64
- ppc64le
- s390x
- key: kubernetes.io/os
operator: In
values:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,10 +101,3 @@ spec:
tls:
- hosts:
- *host
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
Original file line number Diff line number Diff line change
Expand Up @@ -121,10 +121,4 @@ spec:
for: 5m
labels:
severity: warning
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists

Original file line number Diff line number Diff line change
Expand Up @@ -44,14 +44,6 @@ spec:
limits:
cpu: 100m
memory: 100Mi
pod:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
service:
main:
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,6 @@ spec:
memory: 50Mi
limits:
memory: 100Mi
pod:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
service:
main:
enabled: false
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,6 @@ spec:
runAsGroup: 568
fsGroup: 568
fsGroupChangePolicy: OnRootMismatch
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,3 @@ spec:
labelSelector:
matchLabels:
app.kubernetes.io/name: *app
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ spec:
limits:
memory: 500Mi
pod:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
topologySpreadConstraints:
- maxSkew: 1
topologyKey: kubernetes.io/hostname
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,6 @@ spec:
labelSelector:
matchLabels:
app.kubernetes.io/name: *app
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
service:
main:
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,6 @@ spec:
resources:
requests:
storage: 1Gi
affinity: &affinity
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
grafana:
enabled: false
forceDeployDashboards: true
Expand Down Expand Up @@ -149,8 +142,6 @@ spec:
sourceLabels:
- __meta_kubernetes_pod_node_name
targetLabel: kubernetes_node
prometheusOperator:
affinity: *affinity
prometheus:
thanosService:
enabled: true
Expand Down Expand Up @@ -190,7 +181,6 @@ spec:
retention: 2d
retentionSize: 15GB
replicas: 2
affinity: *affinity
storageSpec:
volumeClaimTemplate:
spec:
Expand Down
12 changes: 0 additions & 12 deletions kubernetes/teyvat/apps/observability/thanos/app/helmrelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,6 @@ spec:
extraTls:
- hosts:
- *host
affinity: &affinity
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
query:
enabled: true
replicaCount: 2
Expand All @@ -86,11 +79,9 @@ spec:
sidecarsService: kube-prometheus-stack-thanos-discovery
sidecarsNamespace: observability
stores: ["thanos-svc.${PI_DOMAIN}:10901"] #["${SVC_PI_THANOS_ADDR}:10901"]
affinity: *affinity
bucketweb:
enabled: true
replicaCount: 2
affinity: *affinity
compactor:
enabled: true
extraFlags:
Expand All @@ -103,15 +94,13 @@ spec:
enabled: true
storageClass: local-hostpath
size: 10Gi
affinity: *affinity
storegateway:
enabled: true
replicaCount: 2
persistence:
enabled: true
storageClass: local-hostpath
size: 10Gi
affinity: *affinity
ruler:
enabled: true
replicaCount: 2
Expand All @@ -133,7 +122,6 @@ spec:
enabled: true
storageClass: local-hostpath
size: 10Gi
affinity: *affinity
metrics:
enabled: true
serviceMonitor:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,6 @@ spec:
envFrom:
- secretRef:
name: unifi-poller-secret
pod:
affinity:
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/control-plane
operator: Exists
service:
main:
ports:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,6 @@ spec:
- name: yelan
devices:
- name: /dev/disk/by-id/nvme-WD_BLACK_SN770_1TB_23063G803424
placement:
mgr: &placement
nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
nodeSelectorTerms:
- matchExpressions:
- key: node-role.kubernetes.io/worker
operator: Exists
mon: *placement
cephBlockPools:
- name: ceph-blockpool
spec:
Expand Down

0 comments on commit 2fc458a

Please sign in to comment.