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

Fail to install tf-operator in minikube because of the version of kubectl/kustomize #1381

Closed
pingsutw opened this issue Aug 26, 2021 · 9 comments
Labels

Comments

@pingsutw
Copy link
Member

pingsutw commented Aug 26, 2021

Try to use kubectl kustomize "github.com/kubeflow/tf-operator.git/manifests/overlays/standalone?ref=master" | kubectl apply -f - to install tf-oepator, and I met below erorr

(base) ➜  overlays git:(master) kubectl kustomize "github.com/kubeflow/tf-operator.git/manifests/overlays/standalone?ref=master" | kubectl apply -f -

Error: rawResources failed to read Resources: Load from path ../../base failed: '../../base' must be a file (got d='/tmp/kustomize-102836278/manifests/base')

error: no objects passed to apply

Kubernetes version:

Client Version: version.Info{Major:"1", Minor:"20", GitVersion:"v1.20.2", GitCommit:"faecb196815e248d3ecfb03c680a4507229c2a56", GitTreeState:"clean", BuildDate:"2021-01-13T13:28:09Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"19", GitVersion:"v1.19.7", GitCommit:"1dd5338295409edcfff11505e7bb246f0d325d15", GitTreeState:"clean", BuildDate:"2021-01-22T22:54:21Z", GoVersion:"go1.15.5", Compiler:"gc", Platform:"linux/amd64"}
@gaocegege
Copy link
Member

Thanks for the issue, we will have a look asap

@gaocegege
Copy link
Member

Cannot reproduce it here.

@gaocegege
Copy link
Member

I am using 1.21, maybe I should try 1.19

@pingsutw
Copy link
Member Author

I also try 1.16, 1,17. Both versions don't work for me.

@pingsutw
Copy link
Member Author

pingsutw commented Aug 26, 2021

@gaocegege It's not related to the Kubernetes version.
Upgrading kubectl to v1.21.0 solved the issue.

Refer to https://stackoverflow.com/questions/67071962/kubectl-apply-k-throws-error-rawresources-failed-to-read-resources-load-from

@gaocegege
Copy link
Member

Interesting. Maybe we should add doc for it.

@gaocegege gaocegege changed the title Fail to install tf-operator in minikube Fail to install tf-operator in minikube because of the version of kubectl/kustomize Aug 27, 2021
@Jeffwan
Copy link
Member

Jeffwan commented Aug 27, 2021

The version of the kustomize in different kubectl varies. This is kind of tricky and we should probably consider the compatibility later

@Jeffwan
Copy link
Member

Jeffwan commented Aug 29, 2021

1.19
https://github.com/kubernetes/kubernetes/blob/3e061debee7ceed92b2bf15a3b472c603e206b0c/go.mod#L141

1.20
https://github.com/kubernetes/kubernetes/blob/b9d77cc50b8d24422f2018ebe5b63e1d1b94236b/go.mod#L535

I didn't notice 1.19 and 1.20 are still using kustomize v2.0.x. The major reason kustomize doesn't work is only bases can refer to outside paths. See more details here. kubernetes-sigs/kustomize#776 (comment)

@terrytangyuan
Copy link
Member

Closed by #1387

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants