Elastic Stack install fails with validation error
Summary
Unable to install Elastic stack via Kubernetes Cluster Configuration screen
Steps to reproduce
- Successfully connect k8s cluster to GitLab
- Successfully install Helm Tiller, Ingress, Cert-Manager, Prometheus
- Attempt to install Elastic Stack
- Elastic Stack install fails with
Operation failed. Check pod logs for install-elastic-stack for more details.
Note: the Kubernetes cluster version is 1.16
Example Project
https://gitlab.com/groups/iloyal/-/clusters/92917
What is the current bug behavior?
Elastic Stack fails to install on a new cluster
What is the expected correct behavior?
Elastic Stack installs successfully
Relevant logs and/or screenshots
+ helm init --upgrade
Creating /root/.helm
Creating /root/.helm/repository
Creating /root/.helm/repository/cache
Creating /root/.helm/repository/local
Creating /root/.helm/plugins
Creating /root/.helm/starters
Creating /root/.helm/cache/archive
Creating /root/.helm/repository/repositories.yaml
Adding stable repo with URL: https://kubernetes-charts.storage.googleapis.com
Adding local repo with URL: http://127.0.0.1:8879/charts
$HELM_HOME has been configured at /root/.helm.
Tiller (the Helm server-side component) has been updated to gcr.io/kubernetes-helm/tiller:v2.16.3 .
+ seq 1 30
+ helm version --tls --tls-ca-cert /data/helm/elastic-stack/config/ca.pem --tls-cert /data/helm/elastic-stack/config/cert.pem --tls-key /data/helm/elastic-stack/config/key.pem
Client: &version.Version{SemVer:"v2.16.3", GitCommit:"1ee0254c86d4ed6887327dabed7aa7da29d7eb0d", GitTreeState:"clean"}
Server: &version.Version{SemVer:"v2.16.3", GitCommit:"1ee0254c86d4ed6887327dabed7aa7da29d7eb0d", GitTreeState:"clean"}
+ s=0
+ break
+ exit 0
+ helm repo update
Hang tight while we grab the latest from your chart repositories...
...Skip local chart repository
...Successfully got an update from the "stable" chart repository
Update Complete.
+ helm upgrade elastic-stack stable/elastic-stack --install --reset-values --tls --tls-ca-cert /data/helm/elastic-stack/config/ca.pem --tls-cert /data/helm/elastic-stack/config/cert.pem --tls-key /data/helm/elastic-stack/config/key.pem --version 1.8.0 --set 'rbac.create=true,rbac.enabled=true' --namespace gitlab-managed-apps -f /data/helm/elastic-stack/config/values.yaml
Release "elastic-stack" does not exist. Installing it now.
Error: validation failed: [unable to recognize "": no matches for kind "DaemonSet" in version "apps/v1beta2", unable to recognize "": no matches for kind "Deployment" in version "apps/v1beta1", unable to recognize "": no matches for kind "StatefulSet" in version "apps/v1beta1"]
Output of checks
This bug happens on GitLab.com
See also
- https://gitlab.slack.com/archives/C3UCHUA76/p1583599284127700 (internal Slack thread)
Possible fixes
Bump to 1.9.0 (from 1.8.0) - see https://github.com/helm/charts/commit/24dc8c9881e456a505949d7dbb3952e75232f42a
Edited by Thong Kuah