Description of problem:
As documented here[1] and here[2], the monitoring components can be moved to infra nodes creating a configmap on the following manner:
~~~
apiVersion: v1
kind: ConfigMap
metadata:
name: cluster-monitoring-config
namespace: openshift-monitoring
data:
config.yaml: |+
alertmanagerMain:
nodeSelector:
node-role.kubernetes.io/infra: ""
prometheusK8s:
nodeSelector:
node-role.kubernetes.io/infra: ""
prometheusOperator:
nodeSelector:
node-role.kubernetes.io/infra: ""
grafana:
nodeSelector:
node-role.kubernetes.io/infra: ""
k8sPrometheusAdapter:
nodeSelector:
node-role.kubernetes.io/infra: ""
kubeStateMetrics:
nodeSelector:
node-role.kubernetes.io/infra: ""
telemeterClient:
nodeSelector:
node-role.kubernetes.io/infra: ""
openshiftStateMetrics:
nodeSelector:
node-role.kubernetes.io/infra: ""
~~~
However, the thanos-querier pods are obviously not migrated to infra nodes on this manner and will require manual modification of the "deployment.apps/thanos-querier"
[1] - https://docs.openshift.com/container-platform/4.4/machine_management/creating-infrastructure-machinesets.html#infrastructure-moving-monitoring_creating-infrastructure-machinesets
[2] - https://docs.openshift.com/container-platform/4.4/monitoring/cluster_monitoring/configuring-the-monitoring-stack.html#moving-monitoring-components-to-different-nodes_configuring-monitoring
Version-Release number of selected component (if applicable):
OCP 4.4.5
How reproducible:
Always
Steps to Reproduce:
1. Install OCP 4.4.5
2. Create new machinesets for infra nodes.
3. Create configmap "cluster-monitoring-config" as showed above.
Actual results:
All monitoring components that were running on worker nodes are successfully moved into new infra nodes except "thanos-querier" pods.
Expected results:
All monitoring components that were running on worker nodes are successfully moved into new infra nodes without exceptions.
Additional info:
I have tried to include also a section "thanosQuerier" within the configmap as follows but has no effect within the deployment:
~~~
thanosQuerier:
nodeSelector:
node-role.kubernetes.io/infra: ""
~~~
Description of problem: As documented here[1] and here[2], the monitoring components can be moved to infra nodes creating a configmap on the following manner: ~~~ apiVersion: v1 kind: ConfigMap metadata: name: cluster-monitoring-config namespace: openshift-monitoring data: config.yaml: |+ alertmanagerMain: nodeSelector: node-role.kubernetes.io/infra: "" prometheusK8s: nodeSelector: node-role.kubernetes.io/infra: "" prometheusOperator: nodeSelector: node-role.kubernetes.io/infra: "" grafana: nodeSelector: node-role.kubernetes.io/infra: "" k8sPrometheusAdapter: nodeSelector: node-role.kubernetes.io/infra: "" kubeStateMetrics: nodeSelector: node-role.kubernetes.io/infra: "" telemeterClient: nodeSelector: node-role.kubernetes.io/infra: "" openshiftStateMetrics: nodeSelector: node-role.kubernetes.io/infra: "" ~~~ However, the thanos-querier pods are obviously not migrated to infra nodes on this manner and will require manual modification of the "deployment.apps/thanos-querier" [1] - https://docs.openshift.com/container-platform/4.4/machine_management/creating-infrastructure-machinesets.html#infrastructure-moving-monitoring_creating-infrastructure-machinesets [2] - https://docs.openshift.com/container-platform/4.4/monitoring/cluster_monitoring/configuring-the-monitoring-stack.html#moving-monitoring-components-to-different-nodes_configuring-monitoring Version-Release number of selected component (if applicable): OCP 4.4.5 How reproducible: Always Steps to Reproduce: 1. Install OCP 4.4.5 2. Create new machinesets for infra nodes. 3. Create configmap "cluster-monitoring-config" as showed above. Actual results: All monitoring components that were running on worker nodes are successfully moved into new infra nodes except "thanos-querier" pods. Expected results: All monitoring components that were running on worker nodes are successfully moved into new infra nodes without exceptions. Additional info: I have tried to include also a section "thanosQuerier" within the configmap as follows but has no effect within the deployment: ~~~ thanosQuerier: nodeSelector: node-role.kubernetes.io/infra: "" ~~~