2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
.. jgr1582125251290
|
|
|
|
.. _configure-kubectl-with-a-context-for-the-user:
|
|
|
|
|
|
|
|
=============================================
|
|
|
|
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** |OIDC| Identity
|
2023-02-28 14:02:05 +00:00
|
|
|
Provider (dex).
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
.. rubric:: |context|
|
|
|
|
|
|
|
|
The steps below show this procedure completed on controller-0. You can also
|
|
|
|
do so from a remote workstation.
|
|
|
|
|
|
|
|
.. rubric:: |proc|
|
|
|
|
|
|
|
|
#. Set up a cluster in kubectl if you have not done so already.
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
2021-03-15 16:56:04 -03:00
|
|
|
~(keystone_admin)]$ kubectl config set-cluster mywrcpcluster --server=https://<oam-floating-ip>:6443
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
|
|
|
|
#. Set up a context for **testuser** in this cluster in kubectl.
|
|
|
|
|
|
|
|
.. code-block:: none
|
|
|
|
|
2021-03-15 16:56:04 -03:00
|
|
|
~(keystone_admin)]$ kubectl config set-context testuser@mywrcpcluster --cluster=mywrcpcluster --user=testuser
|
2020-08-31 11:01:56 -04:00
|
|
|
|
|
|
|
|
|
|
|
|