-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
Add integration tests for Kubernetes #17538
Comments
Pinging @elastic/integrations-platforms (Team:Platforms) |
Once #12792 is completed testing for metric-server should also be added. If leveraging GKE is the approach metric-server comes already running. Another option for the docker images with the cloud providers would be to spawn a GKE (or EKS, AKS) cluster, deploy a private registry into the cluster, then build the images and push them there, then creation of pods could pull from the registry added to the cluster. |
I've revisited our current status and some things happened recently. Tests are already using Kind: https://github.com/elastic/beats/blob/master/.ci/scripts/kind-setup.sh They also test against several versions: Line 587 in c71b424
It would be worth testing if this is enough already (ie it allows us to run stuff or retrieve logs) |
@exekias Been looking into the current usage of kind. It is rather shallow, it is only verifying that the manifests are being deployed. I think we need to extend this to at least verify that all the required pods are in a ready state, then on top of that verify that metrics are flowing. That probably means also deploying elasticsearch into the cluster to verify with. It also seems that all of the kubernetes integration tests are disabled in |
With the references PR above, the kubernetes module has good coverage in metricbeat. That still leaves adding the following:
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
We are now testing the |
We want to improve our coverage with integration tests for Kubernetes. We should explore our options and come up with a solution that allow us to run Filebeat & Metricbeat against a running cluster.
In order to simplify this we can start by targeting testing a single version of Kubernetes (latest) in Jenkins jobs. We can reuse this in the future for compatibility matrix based testing.
There is a bunch of pieces we can test for, I think these would be the most important:
Metricbeat Kubernetes module
Metricbeat autodiscover
Filebeat autodiscover
There are several paths we can follow to do this. For instance:
The text was updated successfully, but these errors were encountered: