我在集群中添加了一个SonarQube操作符(https://github.com/RedHatGov/sonarqube-operator),当我想让Sonar实例离开操作符时,容器将终止失败消息:
ERROR: [1] bootstrap checks failed
[1]: max virtual memory areas vm.max_map_count [253832] is too low, increase to at least [262144]问题在于经营者指的是标签;
tuned.openshift.io/elasticsearch这就让我来做必要的调优,但是在这个原始集群上没有Elasticsearch运算符或调优。
我已经为声纳创造了一个调谐,但无论出于什么原因,这个东西不想被拉。目前的情况如下:
apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
name: sonarqube
namespace: openshift-cluster-node-tuning-operator
spec:
profile:
- data: |
[main]
summary=A custom OpenShift SonarQube profile
include=openshift-control-plane
[sysctl]
vm.max_map_count=262144
name: openshift-sonarqube
recommend:
- match:
- label: tuned.openshift.io/sonarqube
match:
- label: node-role.kubernetes.io/master
- label: node-role.kubernetes.io/infra
type: pod
priority: 10
profile: openshift-sonarqube在部署上,我给出了标签;
tuned.openshift.io/sonarqube但是不管出于什么原因,它没有被拉出来,我仍然得到了上面的错误信息。是否有人有想法和/或这些必要的步骤?我遵循文档> (https://access.redhat.com/documentation/en-us/openshift_container_platform/4.8/html/scalability_and_performance/using-node-tuning-operator),它不能使用自定义的示例。我又把比赛安排在了比赛中,但这也不起作用。
有什么建议吗?
发布于 2022-02-23 11:47:01
不妨试试这个:
oc create -f - <<EOF
apiVersion: tuned.openshift.io/v1
kind: Tuned
metadata:
name: openshift-elasticsearch
namespace: openshift-cluster-node-tuning-operator
spec:
profile:
- data: |
[main]
summary=Optimize systems running ES on OpenShift nodes
include=openshift-node
[sysctl]
vm.max_map_count=262144
name: openshift-elasticsearch
recommend:
- match:
- label: tuned.openshift.io/elasticsearch
type: pod
priority: 20
profile: openshift-elasticsearch
EOF(从:https://github.com/openshift/cluster-node-tuning-operator/blob/master/examples/elasticsearch.yaml获得)
https://stackoverflow.com/questions/71219463
复制相似问题