docs/doc/source/security/kubernetes/configure-kubectl-with-a-context-for-the-user.rst
Keane Lim 3c5fa979a4 Security guide update
Re-organized topic hierarchy

Tiny edit to restart review workflow.

Squashed with Resolved index.rst conflict commit

Change-Id: I13472792cb19d1e9975ac76c6954d38054d606c5
Signed-off-by: Keane Lim <keane.lim@windriver.com>
Signed-off-by: MCamp859 <maryx.camp@intel.com>
2021-03-12 15:10:40 -05: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