-
Notifications
You must be signed in to change notification settings - Fork 308
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
HPCC-27029 Start/stop ELK by default via docker scripts #15718
HPCC-27029 Start/stop ELK by default via docker scripts #15718
Conversation
https://track.hpccsystems.com/browse/HPCC-27029 |
@richardkchapman this version will perform a helm dependency check on the elastic4hpcclogs charts on every start. |
dockerfiles/startall.sh
Outdated
@@ -87,7 +88,7 @@ while [ "$#" -gt 0 ]; do | |||
echo " -c Update chart dependencies" | |||
echo " -p <location> Use local persistent data" | |||
echo " -pv <yamlfile> Override dataplane definitions for local persistent data" | |||
echo " -e Deploy light-weight Elastic Stack for component log processing" | |||
echo " -e Ignored - light-weight Elastic Stack deployed by default" |
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.
Would it be sensible to repurpose -e to suppress the deployment of elk?
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 would definitely be useful, I was concerned about overwriting the option w/ the complete opposite behavior, but I doubt anybody would be affected by that change. I'll repurpose to suppress.
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.
Same question on the uninstall?
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.
The stopall attempts to uninstall the elastic cluster regardless, no need to include the option.
That's based on precedent behavior encouraged by Jake/Gavin in other PRs related to stopall.
418aaa8
to
cf49b40
Compare
I got the following warnings (errors) when I ran startall without params: Deploying myelastic4hpcclogs - light-weight Elastic Stack: W0203 09:53:25.825499 93370 warnings.go:70] policy/v1beta1 PodDisruptionBudget is deprecated in v1.21+, unavailable in v1.25+; use policy/v1 PodDisruptionBudget Issue reported to elastic: elastic/helm-charts#1568 |
System started ok, was able to connect a browser to kibana at localhost:5601. But no idea what to do with it - should we prepopulate a standard dashboard, have it already pointed at our elasticsearch? |
I'm not convinced that the default behaviour of "leave the pvc after running stopall.sh" is desirable. Default behaviour of startall/stopall in all other respects is "start from clean, and leave no trace". |
Fair enough... we can add logic to ensure the Elastic PVC is deleted upon stopall... |
The "wrong version" status means Helm found the target charts locally, but they were apparently outdated (not surprised since we recently bumped the ELK charts). We hard-coded a dependency update in startall and it should have pulled the latest charts, Out of curiosity does helm list report the following? The k8s warnings have to be addressed, I've reported a few of them on the Elastic bug tracker but your output shows some I haven't seen before. Do you mind sharing the Helm/k8s/docker version you're on? I'll use that info to report issue. Pre-existing issue: elastic/helm-charts#1055 |
Absolutely, I'm targeting the discover view with the hpcc log centric fields laid out by default as the defaultroute in Kibana |
We could (optionally) use a namespace, but I suspect a lot of developers have got used to there not being one and may have scripts that would fail. Would be better to deduce the pvc name I think |
dockerfiles/startall.sh
Outdated
if [[ -z "${DEP_UPDATE_ARG}" ]]; then | ||
dependency_check "managed/logging/elastic" | ||
fi | ||
dependency_check "managed/logging/elastic" |
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.
As discussed offline, this change is wrong and should be reverted
c62eab7
to
6d237ea
Compare
@richardkchapman I've reversed the dep-check change. Helm dependency update doc: Helm install options doc: |
@rpastrana Looks reasonable - can you squash |
- Starts Elastic Stack instance by default via startall.sh - Stops Elastic Stack instance by default via stopall.sh - Reverses -e option to supress deployment of elk - Adds logic to delete elastic PVC/PV - Defines option to suppress deletion of elastic4hpcclogs Signed-off-by: Rodrigo Pastrana <[email protected]>
5fbbe1a
to
e20e64c
Compare
@richardkchapman squashed |
Automated Smoketest: ✅
|
Signed-off-by: Rodrigo Pastrana [email protected]
Type of change:
Checklist:
Smoketest:
Testing: