-
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 kubernetes manifests #5349
Add kubernetes manifests #5349
Conversation
d46df15
to
e1a48b8
Compare
jenkins package it please |
e4498cf
to
8e98fe7
Compare
Import https://github.com/elastic/beats-kubernetes, these manifests deploy filebeat & metricbeat to Kubernetes
5793618
to
6a4f2af
Compare
@@ -149,6 +155,13 @@ python-env: | |||
@$(PYTHON_ENV)/bin/pip install -q --upgrade pip autopep8 six | |||
|
|||
# Tests if apm works with the current code | |||
.PHONY: python-env | |||
.PHONY: test-apm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for the fix
deploy/kubernetes/.travis/setup.sh
Outdated
until $( curl --output /dev/null --silent http://localhost:8080 ) || [ $TIMEOUT -eq $TIMEOUT_COUNT ]; do | ||
echo "Kube is not up yet" | ||
let TIMEOUT=TIMEOUT+1 | ||
sleep 20 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That would mean in total it could wait up to 800s? Seems like a bit too much. I would probably increase the TIMEOUT_COUNT to a larger number like 300 but just sleep for 1 second each time.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It normally goes up to ~28 iteration of 40, that leaves around 3 extra minutes for the worst case, is not that much, I could make it more granular if you want, but total timeout time looks good to me as it is, wdyt?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh, didn't expect it to take several minutes to setup. Then the total is definitively good :-)
I would probably modify the checks as checking every second does not seem to be much overhead, it makes the tests quicker (in best case 19s ;-) ) and I think it's easier to read for a dev changing the code (personal preference).
deploy/kubernetes/Makefile
Outdated
@@ -0,0 +1,22 @@ | |||
ALL = filebeat metricbeat |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is the space after ALL
on purpose?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No special reason, can change it
6a4f2af
to
7d62181
Compare
pinging @dedemorton on the documentation, let me know what do you think |
* Add kubernetes manifests Import https://github.com/elastic/beats-kubernetes, these manifests deploy filebeat & metricbeat to Kubernetes * Add travis tests * Add packaging * Add docs * Update CHANGELOG * Fix Makefile * Check k8s health every second (cherry picked from commit 21eefda)
* Add kubernetes manifests (#5349) * Add kubernetes manifests Import https://github.com/elastic/beats-kubernetes, these manifests deploy filebeat & metricbeat to Kubernetes * Add travis tests * Add packaging * Add docs * Update CHANGELOG * Fix Makefile * Check k8s health every second (cherry picked from commit 21eefda) * Fix chown timing issues on k8s deploy (#5410) It seems to be failing for v1.7.7, this change should fix it * Publish kubernetes manifests in the code (#5418) They will be available for download from github * Update YAML files to current version * Update CHANGELOG.asciidoc
* Add kubernetes manifests (elastic#5349) * Add kubernetes manifests Import https://github.com/elastic/beats-kubernetes, these manifests deploy filebeat & metricbeat to Kubernetes * Add travis tests * Add packaging * Add docs * Update CHANGELOG * Fix Makefile * Check k8s health every second (cherry picked from commit d8f2092) * Fix chown timing issues on k8s deploy (elastic#5410) It seems to be failing for v1.7.7, this change should fix it * Publish kubernetes manifests in the code (elastic#5418) They will be available for download from github * Update YAML files to current version * Update CHANGELOG.asciidoc
Import https://github.com/elastic/beats-kubernetes, these manifests
deploy filebeat & metricbeat to Kubernetes
Also add documentation about them
Related to #5292