Skip to content

Commit

Permalink
updated pod anti affinity for agent pods (cloud-bulldozer#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
mukrishn authored and rsevilla87 committed May 10, 2023
1 parent 6574d13 commit b9e38b1
Showing 1 changed file with 27 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
---
apiVersion: v1
kind: ConfigMap
metadata:
name: user-workload-monitoring-config
namespace: openshift-user-workload-monitoring
data:
config.yaml: >
prometheus:
nodeSelector:
node-role.kubernetes.io/workload: ""
tolerations:
- effect: NoSchedule
key: role
value: workload
---
apiVersion: v1
kind: Namespace
metadata:
Expand Down Expand Up @@ -71,6 +87,17 @@ spec:
matchExpressions:
- key: node-role.kubernetes.io/workload
operator: Exists
podAntiAffinity:
requiredDuringSchedulingIgnoredDuringExecution:
- labelSelector:
matchLabels:
app.kubernetes.io/component: prometheus
app.kubernetes.io/instance: user-workload
app.kubernetes.io/name: prometheus
app.kubernetes.io/part-of: openshift-monitoring
namespaces:
- openshift-user-workload-monitoring
topologyKey: kubernetes.io/hostname
tolerations:
- key: role
value: workload
Expand Down Expand Up @@ -152,18 +179,3 @@ data:
tls_config:
insecure_skip_verify: true
---
apiVersion: v1
kind: ConfigMap
metadata:
name: user-workload-monitoring-config
namespace: openshift-user-workload-monitoring
data:
config.yaml: >
prometheus:
nodeSelector:
node-role.kubernetes.io/workload: ""
tolerations:
- effect: NoSchedule
key: role
value: workload

0 comments on commit b9e38b1

Please sign in to comment.