I have updated apm-server-quickstart-apm-token secret-token to a known value, but the apm agent is unable to connect to apm server, throwing authentication error. Please let me know which secret should i update for apm server to accept secret-token i have set
Take a look at this. The specified command should get you the secret token.
Make sure it is Base-64-encoded and stored in the right field. Then make sure the agent actually uses the right token (or retrieves it from the right secret, if using the approach suggested in the blog post).
any value set in apm-server-quickstart-apm-token secret will be used by apm-sever right? doesnt it automatically take it, if not pls let me know where to make change for secret token to be used by apm-server in eck
Did you set that secret value after creating the ApmServer resource? If so, I suspect you're hitting https://github.com/elastic/cloud-on-k8s/issues/523. Until that's addressed, if you delete the apm-server pod then the new one should pick up the updated secret token.