File tree Expand file tree Collapse file tree 3 files changed +7
-10
lines changed
kube_prometheus_stack/defaults/main
environments/.caas/inventory/group_vars/all Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change 2828 INSTALL_K3S_BIN_DIR : " /usr/bin"
2929 changed_when : true
3030 loop :
31- - server --disable=traefik
32- - agent
31+ - server --disable=traefik --node-label clusterrole=server
32+ - agent --node-label clusterrole=agent
3333
3434- name : Install helm
3535 unarchive :
Original file line number Diff line number Diff line change @@ -43,8 +43,6 @@ kube_prometheus_stack_prometheus_external_url: >-
4343 else ""
4444 }}
4545
46- control_hostname : " {{ ( openhpc_cluster_name + '-control.'+ openhpc_cluster_name + '.' + cluster_domain_suffix ) | lower }}"
47-
4846# The values for the kube-prometheus-stack release
4947kube_prometheus_stack_release_defaults :
5048 defaultRules :
@@ -91,7 +89,7 @@ kube_prometheus_stack_release_defaults:
9189 runAsGroup : 0
9290 fsGroup : 0
9391 nodeSelector :
94- kubernetes.io/hostname : " {{ control_hostname }} "
92+ clusterrole : " server "
9593
9694 additionalPrometheusRulesMap : " {{ prometheus_alert_rules }}"
9795
@@ -122,7 +120,7 @@ kube_prometheus_stack_release_defaults:
122120 additionalDataSources : " {{ grafana_datasources }}"
123121 plugins : " {{ grafana_plugins }}"
124122 nodeSelector :
125- kubernetes.io/hostname : " {{ control_hostname }} "
123+ clusterrole : " server "
126124 persistence :
127125 type : pvc
128126 enabled : true
@@ -155,7 +153,7 @@ kube_prometheus_stack_release_defaults:
155153 alertmanagerConfigMatcherStrategy :
156154 type : None
157155 nodeSelector :
158- kubernetes.io/hostname : " {{ control_hostname }} "
156+ clusterrole : " server "
159157 scheme : " {{ prometheus_alertmanager_config.scheme | default( '' ) }}"
160158 serviceMonitor :
161159 scheme : " {{ prometheus_alertmanager_config.scheme | default( '' ) }}"
@@ -165,11 +163,11 @@ kube_prometheus_stack_release_defaults:
165163
166164 prometheusOperator :
167165 nodeSelector :
168- kubernetes.io/hostname : " {{ control_hostname }} "
166+ clusterrole : " server "
169167
170168 kube-state-metrics :
171169 nodeSelector :
172- kubernetes.io/hostname : " {{ control_hostname }} "
170+ clusterrole : " server "
173171
174172 prometheus-node-exporter :
175173 image :
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments