docs/doc/source/security/kubernetes/configure-kubectl-with-a-context-for-the-user.rst
Rafael Jardim d95c80d36f Update Security
Fixed merge conflict (RS)

Signed-off-by: Rafael Jardim <rafaeljordao.jardim@windriver.com>
Change-Id: I30b882a14196525f440db1108a56bbf862dfaf55
Signed-off-by: Ron Stone <ronald.stone@windriver.com>
2021-04-01 16:02:36 -04:00

945 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