docs/doc/source/security/kubernetes/configure-kubectl-with-a-context-for-the-user.rst
Ron Stone f125a8b892 Remove spurious escapes (r8,dsR8)
This change addresses a long-standing issue in rST documentation imported from XML.
That import process added backslash escapes in front of various characters. The three
most common being '(', ')', and '_'.
These instances are removed.

Signed-off-by: Ron Stone <ronald.stone@windriver.com>
Change-Id: Id43a9337ffcd505ccbdf072d7b29afdb5d2c997e
2023-03-01 11:19:04 +00:00

943 B

Configure Kubectl with a Context for the User

You can set up the kubectl context for the Windows Active Directory testuser to authenticate through the oidc-auth-apps Identity Provider (dex).

The steps below show this procedure completed on controller-0. You can also do so from a remote workstation.

  1. Set up a cluster in kubectl if you have not done so already.

    ~(keystone_admin)]$ kubectl config set-cluster mywrcpcluster --server=https://<oam-floating-ip>:6443
  2. Set up a context for testuser in this cluster in kubectl.

    ~(keystone_admin)]$ kubectl config set-context testuser@mywrcpcluster --cluster=mywrcpcluster --user=testuser