-
Notifications
You must be signed in to change notification settings - Fork 148
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[8.x](backport #6495) [helm] add kube-state-metric subchart dependency #6534
Conversation
* feat: add ksm subchart dependency * feat: refactor elastic-agent chart to utilise ksm subchart * feat: add new ksm examples * fix: typos * feat: remove charts directory * fix: reintroduce Chart.lock (cherry picked from commit edd342a) # Conflicts: # deploy/helm/elastic-agent/Chart.yaml # deploy/helm/elastic-agent/examples/eck/rendered/manifest.yaml # deploy/helm/elastic-agent/examples/kubernetes-default/rendered/manifest.yaml # deploy/helm/elastic-agent/examples/kubernetes-hints-autodiscover/rendered/manifest.yaml # deploy/helm/elastic-agent/examples/multiple-integrations/rendered/manifest.yaml # deploy/helm/elastic-agent/examples/user-service-account/rendered/manifest.yaml
Cherry-pick of edd342a has failed:
To fix up this pull request, you can check it out locally. See documentation: https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/reviewing-changes-in-pull-requests/checking-out-pull-requests-locally |
Pinging @elastic/elastic-agent-control-plane (Team:Elastic-Agent-Control-Plane) |
Quality Gate passedIssues Measures |
What does this PR do?
This PR refactors the Elastic Agent Helm chart to include the
kube-state-metrics
(KSM) chart as a subchart dependency. The changes enable users to seamlessly deploy KSM alongside the Elastic Agent for all different deployment options, improving the out-of-the-box experience for Kubernetes monitoring.Key changes include:
kube-state-metrics.enabled
) and deploying Elastic Agent as a sidecar container to the former (kubernetes.state.agentAsSidecar.enabled
)values.schema.json
has been updated to prevent such configurationThis PR consists of 3 commits:
since a019dbf, which is the main change of this PR, is +529 additions -1268 deletions I deem that this PR complies with the team PR policies but happy to try to split it up in smaller chunks if it doesn't 🙂
Why is it important?
This PR is important because it enhances the Elastic Agent Helm chart to simplify the deployment and management of Kubernetes monitoring. By including
kube-state-metrics
as a subchart dependency, the PR significantly reduces user friction and ensures better alignment with Kubernetes integration requirements.The refactoring also:
Checklist
./changelog/fragments
using the changelog toolDisruptive User Impact
This PR introduces a new default behavior that includes the
kube-state-metrics
chart as a dependency. By default:kube-state-metrics.enabled=false
to opt out of deployingkubernetes.state.agentAsSidecar.enabled=true
.For users upgrading existing installations,
ksmSharded
preset is gonna be uninstalled and their kube-state-metrics related flow will follow the logic aboveHow to test this PR locally
Related issues
This is an automatic backport of pull request #6495 done by [Mergify](https://mergify.com).