-
Notifications
You must be signed in to change notification settings - Fork 1.9k
[logstash] Add FAQ: Why am I missing required field serviceName
during install?
#398
Conversation
User may receive the following error when executing `helm install ...`: Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(StatefulSet.spec): missing required field "serviceName" in io.k8s.api.apps.v1.StatefulSetSpec This is due to the requirement to define at least one service in `values.yaml` prior to an install. Added FAQ to README.md to address this question.
Since this is a community submitted pull request, a Jenkins build has not been kicked off automatically. Can an Elastic organization member please verify the contents of this patch and then kick off a build manually? |
Author of the following commits did not sign a Contributor Agreement: Please, read and sign the above mentioned agreement if you want to contribute to this project |
serviceName
during install?serviceName
during install?
Hi @drenze, If you don't need a service, you should let the default config with In order to help you with your issue, can you paste here your values file and the exact command you are typing? |
Thanks for the response.
I received that error when attempting to deploy the unmodified chart, with an unmodified values file. Steps to reproduce are to clone the repo, then install the chart.
Douglas J. Renze
[email protected]
"Unless you are willing to do the ridiculous, God will not do the miraculous."
… - Mother Angelica
________________________________
From: Julien Mailleret <[email protected]>
Sent: Friday, December 6, 2019 12:06 PM
To: elastic/helm-charts
Cc: drenze; Mention
Subject: Re: [elastic/helm-charts] [logstash] Add FAQ: Why am I missing required field `serviceName` during install? (#398)
Hi @drenze,
Thank you for your PR, however service are optional and used only if you need to define a Logstash listener to receive external calls like the Beats input plugin which will receive logs from Beats on port 5044 for exemple.
If you don't need a service, you should let the default config with service: {}. This configuration is automatically tested everyday without any issue.
In order to help you with your issue, can you paste here your values file and the exact command you are typing?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or unsubscribe.
|
We have a python unit test which specifically ensure than no service will be required with default configuration. This test is run every day on our CI. In addition we have another daily CI job which is deploying helm chart with default values (by cloning repo then installing the chart) on a GKE cluster and run smoke tests to ensure that the chart installation is OK and Logstash is working well. Both this tests are running without error. Can you provide the exact commands you are typing and some details on your k8s environment:
|
This seems to happen with helm 3.x (3.0.1 in my case) only. @jmlrt A link to the issue or roadmap for support of helm 3.x would be welcome. @drenze After you got an insight into the helm 3.x support roadmap and your change is deemed valuable by the devs, I suggest to shorten the explanation of edits to the template as it's irrelevant which comment to remove exactly. If you state "put a value x in the |
OK, we don't support Helm v3 yet as mentionned in elastic/helm-charts#helm-versions. Despite we will support it at some time, we don't have any roadmap for it currently. |
The workaround proposed in this PR seems to work. I opened #401 not to push it, but it has to be done one day and it's a simple first step. |
I'm closing this PR as it is explicitely mentionned than Helm v3 is not supported, and we now have an issue to support it. |
I am getting this same error with
|
@poochwashere can you provide your |
User may receive the following error when executing
helm install ...
:Error: unable to build kubernetes objects from release manifest: error validating "": error validating data: ValidationError(StatefulSet.spec): missing required field "serviceName" in io.k8s.api.apps.v1.StatefulSetSpec
This is due to the requirement to define at least one service in
values.yaml
prior to an install. Added FAQ to README.md to addressthis question.
${CHART}/tests/*.py
${CHART}/examples/*/test/goss.yaml