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

Errors when kubectl apply #6

Closed
hongbo-miao opened this issue Aug 3, 2021 · 0 comments · Fixed by #7
Closed

Errors when kubectl apply #6

hongbo-miao opened this issue Aug 3, 2021 · 0 comments · Fixed by #7

Comments

@hongbo-miao
Copy link
Contributor

hongbo-miao commented Aug 3, 2021

Got these error when kubectl apply

➜ kubectl --context=k3d-east apply -k east
error: map[string]interface {}(nil): yaml: unmarshal errors:
  line 17: mapping key "apiVersion" already defined at line 1
  line 18: mapping key "kind" already defined at line 2
  line 19: mapping key "metadata" already defined at line 3
  line 23: mapping key "spec" already defined at line 7

Here is my kubectl and k3d version if helps.

➜ kubectl version
Client Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.2", GitCommit:"092fbfbf53427de67cac1e9fa54aaa09a28371d7", GitTreeState:"clean", BuildDate:"2021-06-16T12:59:11Z", GoVersion:"go1.16.5", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"21", GitVersion:"v1.21.2+k3s1", GitCommit:"5a67e8dc473f8945e8e181f6f0b0dbbc387f6fca", GitTreeState:"clean", BuildDate:"2021-06-21T20:52:44Z", GoVersion:"go1.16.4", Compiler:"gc", Platform:"linux/amd64"}

➜ k3d version
k3d version v4.4.7
k3s version latest (default)
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

Successfully merging a pull request may close this issue.

1 participant