-
Notifications
You must be signed in to change notification settings - Fork 156
Editing configmap.yml and elasticsearch.yml in order to change password #110
Comments
It depeds on the changes, you will have to restart pods in some situations.
The authentication is managed by xpack. This document
Just follow the standard k8s docs and it should work on GCE. |
@pavolloffay What is the best strategic to restart the pod? have been reading some posts blogs and speak about that, but I haven't clear how to restart the pods, because many sites talk about it depending of the way in that they has been created, and when I delete some pods via kubectl GKE inmediately create other pod with similar characteristics. Even recommend go to the specific container (s) inside the pod and restart or kill the process container inside the pod, like strategic to restart ..https://stackoverflow.com/a/47799862/2773461 (edited) |
Just kill the pod and let the Kubernetes controller start a new one. You might lose any inflight data, like spans that were received but not persisted. Ideally, we would implement a file watcher in Jaeger itself, to restart the internal process without the need to kill the pod, but I don't think we have it in place already. |
@jpkrohling I will take it in my mind when I need it. |
Update elasticsearch default password.
Problem
I want to implement a jaeger installation with persistent storage using elasticsearch like backend on my Kubernetes cluster on Google cloud platform.
I am using the jaeger kubernetes templates and I start with elasticsearch production setup.
I've downloaded and modified the
configmap.yml
file in order to change the password field value and theelasticsearch.yml
file in order to fix the password value which I've changed.My customized
.yml
files has stayed of this way:configmap.yml
elasticsearch.yml
kubectl
commandkubectl
command~/w/j/AddPersistVolumToPods ❯❯❯ kubectl create -f elasticsearch.yml
statefulset.apps/elasticsearch created
service/elasticsearch created
~/w/j/AddPersistVolumToPods ❯❯❯
I can see that I have the elasticsearch service created on my GKE cluster
And I have the
elasticsearch-0
pod which have the docker container of elasticsearch serviceBut when I can detail my pod on KGE, I see that my pod have some warnings and is not healthy ...
I get the pod description detail and I get this warning
Warning Unhealthy 2m6s (x296 over 26m) kubelet, gke-jaeger-persistent-st-default-pool-d72f7fde-ggrk Readiness probe failed:
Here, my entire output to
describe
commandI go to the container log section on GCP and I get the following:
And in the audit log section I can see something like this:
If I try with the original files and I change the password via KGE on GCP I get this error:
After that I've create a pod, is not possible update or perform some changes?
kubectl apply -f .....
? I suposseHow to can I change the elasticsearch password?
If I want configure a persistent volume claim on this pod, can I perform this before the
kubectl create -f
command and my volume and mountPath will be created on container and KGE?The text was updated successfully, but these errors were encountered: