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

kubectl create secret not working, but same with yaml works #772

Closed
gireeshp opened this issue Nov 25, 2019 · 2 comments
Closed

kubectl create secret not working, but same with yaml works #772

gireeshp opened this issue Nov 25, 2019 · 2 comments
Assignees

Comments

@gireeshp
Copy link

This is the same issue raised here in the kubernetes website repo.

I'm following this documentation. Secret gets created when tried using yaml, but not using "kubectl create secret" command.

Thought this is the right forum to raise this issue.

@zhouya0
Copy link
Contributor

zhouya0 commented Nov 25, 2019

/assign
It's because when using kubectl create secret tls nginxsecret --key /tmp/nginx.key --cert /tmp/nginx.crt, it creats Data with :

Data
====
tls.crt:  1143 bytes
tls.key:  1704 bytes

But when using yaml we defines the data:

Data
====
nginx.crt:  1143 bytes
nginx.key:  1704 bytes

Which would lead no such file or directory error.

@zhouya0
Copy link
Contributor

zhouya0 commented Nov 26, 2019

@gireeshp I hope this PR would help that :)kubernetes/website#17810

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