i installed elasticsearch and kibana 6.3.2 from docker images. (kubernetes environment)
and then i change to trail license.
now i can see the x-pack funtion. but i can't activate security funtion (log-in /log-out)
i aready write my yaml file (xpack.security.enabled: true , elasticsearch.username, elasticsearch.password)
at 6.2.4 i can activate security funtion like this. (make some above configuration )
is xpack.security.enabled: true set on the elasticsearch side of things? What is returned when you try to access the / endpoint from one of the elasticsearch nodes?
i can see that.
i already set xpack.security.enabled: true to elasticsearch.yaml and kibana.yaml
after changing trial license at kibana, i try to restart elasticsearch node.
but my environment is kubernetes, so if i restart es node. k8s do auto healing and es is recreated.
and then, the license back to basic. because k8s create new es. that is k8s necessary function.
so i can't restart es node.
If you are trying to run ES as stateless K8s service then you're going to run into all sorts of problems. Your options are incredibly limited if you can never restart your nodes. You will lose all your data anytime your node crashes or is shutdown. That's a massive limitation.
However, if that's what you want, then you need to configure all of this before your start up your node.
Try these putting these configurations into your container:
in v6.2.4 i can make security to use these configurations.
but i think v6.3.2 is only starting with basic license.
if only i cant start basic license, do i have to restart my es-node for make security(log-in / out)?
You need to set those before you start the cluster for the first time. Once the cluster has generated a basic license it is too late, and you have to use the API to change the license, you cannot do it with config settings.
If you you have tried that and aren't getting the results you expected then you will need to describe exactly what you are seeing, because that configuration definitely works, I use it all the time.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.