Skip to content
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

Unable to install the operator with Helm3 #1087

Closed
ityuhui opened this issue Nov 26, 2020 · 4 comments
Closed

Unable to install the operator with Helm3 #1087

ityuhui opened this issue Nov 26, 2020 · 4 comments

Comments

@ityuhui
Copy link

ityuhui commented Nov 26, 2020

Hi there
I want to install this operator in my k8s cluster with Helm3 but cannot succeed. Below is my step:

root@yuhuium:~# helm version
version.BuildInfo{Version:"v3.4.1", GitCommit:"c4e74854886b2efe3321e185578e6db9be0a6e29", GitTreeState:"clean", GoVersion:"go1.14.11"}

root@yuhuium:~# helm repo add incubator https://charts.helm.sh/incubator --force-update
"incubator" has been added to your repositories

root@yuhuium:~# helm install incubator/sparkoperator --namespace spark-operator --set sparkJobNamespace=default
Error: must either provide a name or specify --generate-name

root@yuhuium:~# helm install incubator/sparkoperator --namespace spark-operator --set sparkJobNamespace=default --generate-name
WARNING: This chart is deprecated
W1126 21:05:16.719539    2096 warnings.go:67] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
W1126 21:05:16.721503    2096 warnings.go:67] apiextensions.k8s.io/v1beta1 CustomResourceDefinition is deprecated in v1.16+, unavailable in v1.22+; use apiextensions.k8s.io/v1 CustomResourceDefinition
Error: create: failed to create: namespaces "spark-operator" not found

Could you please help check this ? Thanks.

@jordanbailes
Copy link

jordanbailes commented Nov 26, 2020

You need to add the spark-operator namespace before applying the chart.

@ityuhui
Copy link
Author

ityuhui commented Nov 27, 2020

Thank you @jordanbailes !
The solution resolves my problem.

Hi @liyinan926
May I create a PR to update the readme/guide for this problem? I think somebody will have the same question in the future.

This will install the Kubernetes Operator for Apache Spark into the namespace spark-operator, if the namespce spark-operator does not exist, create it by manul, e.g.
kubectl create namespace spark-operator

@ityuhui
Copy link
Author

ityuhui commented Nov 27, 2020

But from Quick Start Guide, I can see

$ helm repo add incubator https://charts.helm.sh/incubator --force-update
$ helm install incubator/sparkoperator --namespace spark-operator --set sparkJobNamespace=default

Installing the chart will create a namespace spark-operator if it doesn't exist

@ityuhui
Copy link
Author

ityuhui commented Dec 11, 2020

Close this issue because it is resovled.

@ityuhui ityuhui closed this as completed Dec 11, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants