hi
I have encountered a potentially ridiculous problem and can't find my way out
I would appreciate any help
my YAML file
apiVersion: elasticsearch.k8s.elastic.co/v1
kind: Elasticsearch
metadata:
name: logging
namespace: elk
spec:
version: 8.1.2
nodeSets:
- name: masters
count: 3
podTemplate:
spec:
initContainers:
- name: sysctl
securityContext:
privileged: true
runAsUser: 0
command: ['sh', '-c', 'sysctl -w vm.max_map_count=262144']
config:
# On Elasticsearch versions before 7.9.0, replace the node.roles configuration with the following:
# node.master: true
node.roles: ["master"]
xpack.ml.enabled: true
node.remote_cluster_client: false
- name: data
count: 5
podTemplate:
spec:
initContainers:
- name: sysctl
securityContext:
privileged: true
runAsUser: 0
command: ['sh', '-c', 'sysctl -w vm.max_map_count=262144']
volumeClaimTemplates:
- metadata:
name: elasticsearch-data # Do not change this name unless you set up a volume mount for the data path.
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 50Gi
storageClassName: rook-ceph-block-ext
config:
# On Elasticsearch versions before 7.9.0, replace the node.roles configuration with the following:
# node.master: false
# node.data: true
# node.ingest: true
# node.ml: true
# node.transform: true
node.roles: ["data", "ingest", "ml", "transform"]
node.remote_cluster_client: false
it does not matter what name I chose in metadata.name field I get the following error
Error from server (Elasticsearch.elasticsearch.k8s.elastic.co "logging" is invalid: [spec.nodeSets[0].config: Forbidden: Detected a combination of node.roles and node.remote_cluster_client. Use only node.roles, spec.nodeSets[1].config: Forbidden: Detected a combination of node.roles and node.remote_cluster_client. Use only node.roles]): error when creating "elastic.yaml": admission webhook "elastic-es-validation-v1.k8s.elastic.co" denied the request: Elasticsearch.elasticsearch.k8s.elastic.co "logging" is invalid: [spec.nodeSets[0].config: Forbidden: Detected a combination of node.roles and node.remote_cluster_client. Use only node.roles, spec.nodeSets[1].config: Forbidden: Detected a combination of node.roles and node.remote_cluster_client. Use only node.roles]