Search⌘ K

Creating Users to Access the Cluster

Explore the process of creating user accounts secured by certificates to safely access a Kubernetes cluster. Learn to generate private keys, certificate signing requests, and final certificates with OpenSSL, and configure server addresses for proper authentication. This lesson helps you provide access without sharing your cluster's credentials.

Understanding the scenario

Let’s suppose Kubernetes is getting popular in your company. People are becoming curious and would like to try it out.

Since you are the Kubernetes guru, it came as no surprise that you received a call from John Doe. They want to use Kubernetes, but they do not have time to set up their own cluster. Since they know that you already have a cluster up and running, they’d appreciate it if you would let them use yours.

Since you have no intention of giving John your certificates, you decide to let them authenticate with their user account.

Installing openSSL

You will have to create certificates for them, so the first step you’ll need to do is to verify that OpenSSL is installed.

Shell
openssl version

It shouldn’t matter which version of OpenSSL is installed. We output the ...