shy-dog-84302
09/02/2022, 4:41 AMapiVersion: v2
name: my-datahub
description: An umbrella chart for Kubernetes deployment of Datahub and it's prerequisites
type: application
version: 0.1.0
appVersion: 1.16.0
dependencies:
- name: datahub-prerequisites
repository: <https://helm.datahubproject.io>
version: 0.0.9
condition: prerequisites.enabled
- name: datahub
repository: <https://helm.datahubproject.io>
version: 0.2.92
condition: datahub.enabled
values.yaml look like this:
prerequisites:
enabled: true
datahub:
enabled: true
pre-deployment steps I ran:
1. helm dependency update -n <namespace>
This created the charts
folder and downloaded charts datahub-prerequisites-0.0.9.tgz
and datahub-0.2.92.tgz
2. helm upgrade --install --debug my-datahub . --values=values.yaml -n <namespace>
Here is the output from chart install
history.go:53: [debug] getting history for release my-datahub
Release "my-datahub" does not exist. Installing it now.
install.go:172: [debug] Original chart version: ""
install.go:189: [debug] CHART PATH: <path to my chart folder>
client.go:254: [debug] Starting delete for "my-datahub-elasticsearch-setup-job" Job
client.go:108: [debug] creating 1 resource(s)
client.go:463: [debug] Watching for changes to Job my-datahub-elasticsearch-setup-job with timeout of 5m0s
client.go:491: [debug] Add/Modify event for my-datahub-elasticsearch-setup-job: ADDED
client.go:530: [debug] my-datahub-elasticsearch-setup-job: Jobs active: 1, jobs failed: 0, jobs succeeded: 0
client.go:491: [debug] Add/Modify event for my-datahub-elasticsearch-setup-job: MODIFIED
client.go:530: [debug] my-datahub-elasticsearch-setup-job: Jobs active: 1, jobs failed: 1, jobs succeeded: 0
client.go:491: [debug] Add/Modify event for my-datahub-elasticsearch-setup-job: MODIFIED
client.go:530: [debug] my-datahub-elasticsearch-setup-job: Jobs active: 1, jobs failed: 2, jobs succeeded: 0
Error: failed pre-install: timed out waiting for the condition
helm.go:94: [debug] failed pre-install: timed out waiting for the condition
Issues observed:
1. I see that the chart is trying to run elasticsearch-setup-job
first which actually depends on the installation of elasticsearch-master
service. Which obviously times out after 5m.
2. What is that I’m missing here that leads to not running the jobs in a proper order?
Any help would be greatly appreciated 🙂bumpy-needle-3184
09/02/2022, 6:01 AMbumpy-needle-3184
09/02/2022, 6:05 AMhelm upgrade --install --debug my-datahub . --values=values.yaml --set prerequisites.enabled=true --set datahub.enabled=false -n <namespace>
and then datahub
helm upgrade --install --debug my-datahub . --values=values.yaml --set prerequisites.enabled=false --set datahub.enabled=true -n <namespace>
shy-dog-84302
09/02/2022, 6:46 AMshy-dog-84302
09/02/2022, 6:59 AMelasticsearch-master:StatefulSet
should have been installed before my-datahub-elasticsearch-setup-job:Job
. Which is not the actual installation order 😞bumpy-needle-3184
09/02/2022, 7:13 AMpre-install
type of helm hook for setup jobs (mysql, kafka , elasticsearch) to istall them prior to installing core datahub component(gms, frontend, action etc)
https://helm.sh/docs/topics/charts_hooks/shy-dog-84302
09/02/2022, 7:28 AMshy-dog-84302
09/02/2022, 12:16 PM