civo/kube100

helm-install-prometheus-operator failed

Opened this issue · 2 comments

prometheus installation is failing due to namespace is not present.
we should include management namespace creation in the helm char.

si458 commented

seems to be the namespace is defo missing from the helm install via the web ui

++ helm_v2 ls --all '^prometheus-operator$' --output json
[storage] 2020/08/26 12:31:21 listing all releases with filter
+ EXIST=
+ '[' '' == 1 ']'
+ '[' '' == v2 ']'
+ helm_repo_init
+ grep -q -e 'https\?://'
+ '[' helm_v3 == helm_v3 ']'
+ [[ stable/prometheus-operator == stable/* ]]
+ helm_v3 repo add stable https://kubernetes-charts.storage.googleapis.com/
"stable" has been added to your repositories
+ helm_v3 repo update
Hang tight while we grab the latest from your chart repositories...
...Successfully got an update from the "stable" chart repository
Update Complete. ⎈ Happy Helming!⎈ 
+ '[' -n '' ']'
+ helm_update install --namespace monitoring --version 8.7.0
+ '[' helm_v3 == helm_v3 ']'
++ tr '[:upper:]' '[:lower:]'
++ jq -r '"\(.[0].app_version),\(.[0].status)"'
++ helm_v3 ls --all-namespaces --all -f '^prometheus-operator$' --output json
+ LINE=null,null
++ cut -f1 -d,
++ echo null,null
+ INSTALLED_VERSION=null
++ cut -f2 -d,
++ echo null,null
+ STATUS=null
+ '[' -e /config/values.yaml ']'
+ '[' install = delete ']'
+ '[' -z null ']'
+ '[' null = deployed ']'
+ '[' null = failed ']'
+ '[' null = deleted ']'
+ helm_v3 install --namespace monitoring --version 8.7.0 prometheus-operator stable/prometheus-operator
manifest_sorter.go:175: info: skipping unknown hook: "crd-install"
manifest_sorter.go:175: info: skipping unknown hook: "crd-install"
manifest_sorter.go:175: info: skipping unknown hook: "crd-install"
manifest_sorter.go:175: info: skipping unknown hook: "crd-install"
manifest_sorter.go:175: info: skipping unknown hook: "crd-install"
Error: create: failed to create: namespaces "monitoring" not found
si458 commented

@eic7772k this has already been fixed for you 👍
civo/kubernetes-marketplace#69