How to Create New Kubernetes User Accounts
Generate new certificate First, we have to generate a private key:
$ openssl genrsa -out ivnilv.pem and a certificate signing request:
$ openssl req -new -key ivnilv.pem -out ivnilv.csr -subj "/CN=ivnilv" The common name of the certificate is important, since it defines the username of the new user.
Signing the certificate The signing request needs to be base64 encoded , before submitting to the Kubernetes API. You can easily encode it using:
blog.ivnilv.com