kubernetes-adduser icon indicating copy to clipboard operation
kubernetes-adduser copied to clipboard

Error creating user

Open daniel-dodoo opened this issue 1 year ago • 1 comments

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

daniel-dodoo avatar May 02 '23 15:05 daniel-dodoo