Hello,
I'm trying to set the elastic user password as described here and here
I receive the following error:
"unknown secure setting [elastic] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
I used this code which is similar to what the operator creates
---
apiVersion: v1
kind: Secret
metadata:
name: logging-es-elastic-user
type: Opaque
data:
elastic: Q2FPYlFGNjVhMDYxVTAxc0lmdDZ4MTBq
and based on the docs tried this:
---
apiVersion: v1
kind: Secret
metadata:
name: logging-es-elastic-user
type: kubernetes.io/basic-auth
stringData:
username: elastic
password: parola
and the error is at the operator
"Secret \"logging-es-elastic-user\" is invalid: [data[%s][username]: Required value, data[%s][password]: Required value]"
by default, created by the operator it looks like this:
kubectl -n logging get secret/logging-es-elastic-user -oyaml
apiVersion: v1
data:
elastic: Tzg0V08zNDJUaTdWMTRkT2ZGNjdRT0hE
kind: Secret
metadata:
creationTimestamp: "2023-02-07T12:57:28Z"
labels:
common.k8s.elastic.co/type: elasticsearch
eck.k8s.elastic.co/credentials: "true"
eck.k8s.elastic.co/owner-kind: Elasticsearch
eck.k8s.elastic.co/owner-name: logging
eck.k8s.elastic.co/owner-namespace: logging
elasticsearch.k8s.elastic.co/cluster-name: logging
name: logging-es-elastic-user
namespace: logging
resourceVersion: "377972498"
uid: b319b016-8ef3-49d7-9099-fbbac49c2405
type: Opaque
Tried also with bootstrap.password
like this:
---
apiVersion: v1
kind: Secret
metadata:
name: logging-es-elastic-user
type: Opaque
data:
bootstrap.password: Q2FPYlFGNjVhMDYxVTAxc0lmdDZ4MTBq
and the error in elasticsearch container is:
"error.message":"unknown secure setting [elastic] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
So it's overwriting my bootstrap.password
with elastic
...
So how should the code look like?