-
Notifications
You must be signed in to change notification settings - Fork 153
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
Kubernetes standalone manifest: remove STATE_PATH, replace initcontainer image #4625
Kubernetes standalone manifest: remove STATE_PATH, replace initcontainer image #4625
Conversation
Signed-off-by: Tetiana Kravchenko <[email protected]>
This pull request does not have a backport label. Could you fix it @tetianakravchenko? 🙏
NOTE: |
@@ -692,16 +692,18 @@ spec: | |||
# Uncomment if using hints feature | |||
#initContainers: | |||
# - name: k8s-templates-downloader | |||
# image: busybox:1.28 |
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.
reason: with busybox:1.28
error:
wget: TLS error from peer (alert code 80): 80
wget: error getting response: Connection reset by peer
with the latest busybox image:
Connecting to github.com (140.82.121.3:443)
wget: note: TLS certificate validation not implemented
it is not an error, see docker-library/busybox#64 but as suggested in this issue should be used image with openssl and ca-certificates.
Option would be to use an alpine image, but since docker.elastic.co/beats/elastic-agent
has curl that can be used to download templates, I think it makes sense to remove extra image dependency
@tetianakravchenko can you provide here the outcome from inside elastic-agent? /elastic-agent inspect -v --variables --variables-wait 2s This way we would be sure that all config template files are part of agent policy |
Also once this PR is merged we need to update instructions here https://www.elastic.co/guide/en/fleet/current/hints-annotations-autodiscovery.html#_configure_hints_autodiscovery |
@gizas I've attached it in the description in |
@gizas I've opened this PR elastic/ingest-docs#1050 as a draft to not forget it |
Minor in the 'How to test', first is the deploy redis and then the inspect |
/test |
1 similar comment
/test |
Quality Gate passedIssues Measures |
What does this PR do?
inputs.d
with all templates will be stored under/usr/share/elastic-agent/state
busybox
image with the image used for the main containerdocker.elastic.co/beats/elastic-agent
to avoid TLS errorsWhy is it important?
/usr/share/elastic-agent/state
, in this locationhostPath
is mounted to store the agent statebusybox
- to remove extra dependency and use the same image that is already used for the main container. With the busybox:1.28 image I got this errorwget: TLS error from peer (alert code 80): 80
, after updating the image to the latest version (1.36) I still gotwget: note: TLS certificate validation not implemented
, even though it is not the error, but as suggested in this issue - TLS support docker-library/busybox#64 (comment) busybox shouldn't be used.Checklist
./changelog/fragments
using the changelog toolAuthor's Checklist
How to test this PR locally
/elastic-agent inspect -v --variables --variables-wait 2s
inspect.yaml.txt
Related issues
Use cases
Screenshots
redis metrics are ingested:
Logs
Questions to ask yourself