kubernetes-adduser
kubernetes-adduser copied to clipboard
Error creating user
I have the following errors when I run the command
add-user.sh ${SOME_USER_NAME}
add-user.sh ${daniel} on my cli
Can you kindly assist me? @brendandburns
root@c9767cf48d82:/# add-user.sh ${daniel}
/usr/bin/cfssl
/usr/bin/cfssljson
Generating signing request.
Can't open cfssl.json.tmpl: No such file or directory.
unexpected end of JSON input
Failed to parse input: unexpected end of JSON input
cat: my-user-client.csr: No such file or directory
The connection to the server 127.0.0.1:61912 was refused - did you specify the right host or port?
Approving signing request.
No resources found
The connection to the server 127.0.0.1:61912 was refused - did you specify the right host or port?
Downloading certificate.
The connection to the server 127.0.0.1:61912 was refused - did you specify the right host or port?
Cleaning up
The connection to the server 127.0.0.1:61912 was refused - did you specify the right host or port?
rm: cannot remove 'my-user-client.csr': No such file or directory
Add the following to the 'users' list in your kubeconfig file:
- name: my-user
user:
client-certificate: //my-user-client.crt
client-key: //my-user-client-key.pem
Ran into this as well. Just install cfssl and cfssljson on your machine locally and then git clone the repo and call the add-user.sh
script. That worked for me