This topic describes how to create admin users in VMware Tanzu Kubernetes Grid Integrated Edition (TKGI) with User Account and Authentication (UAA).

Note: Support for GCP is deprecated and will be entirely removed in TKGI v1.19.



Overview

You must create at least one admin user during your initial set up of TKGI.

UAA is the identity management service for Tanzu Kubernetes Grid Integrated Edition. TKGI includes a UAA server, which is hosted on the TKGI API VM.

To interact with the UAA server, you can use the UAA Command Line Interface (UAAC). You can either run UAAC commands from the Ops Manager VM or install UAAC on your local workstation.

To set up an admin user:

  1. Connect to the TKGI API VM
  2. Log In as a UAA Admin
  3. Assign TKGI Cluster Scopes



Prerequisites

Before setting up admin users for TKGI, you must have one of the following:

  • SSH access to the Ops Manager VM

  • A machine that can connect to your TKGI API VM



Step 1: Connect to the TKGI API VM

You can connect to the TKGI API VM from the Ops Manager VM or from a different machine such as your local workstation:


Option 1: Connect through the Ops Manager VM

You can connect to the TKGI API VM by logging in to the Ops Manager VM through SSH. To SSH into the Ops Manager VM on GCP, do the following:

  1. Confirm that you have installed the gcloud Command Line Interface (CLI). For more information, see Downloading gcloud in the Google Cloud Platform (GCP) documentation.

  2. From the GCP console, click Compute Engine.

  3. Locate the Ops Manager VM in the VM Instances list.

  4. Click the SSH menu button.

  5. Copy the SSH command that appears in the pop-up window.

  6. SSH into the Ops Manager VM by pasting the command into your terminal.

    For example:

    $ gcloud compute ssh om-pcf-1a --zone us-central1-b
    
  7. Switch to the ubuntu user by running the sudo su - ubuntu command.

  8. Proceed to the Log In as a UAA Admin section to manage users with UAAC.


Option 2: Connect through a Non-Ops Manager Machine

To connect to the TKGI API VM and run UAA commands, do the following:

  1. Install UAAC on your machine. For example:

    gem install cf-uaac
    
  2. Download a copy of your Ops Manager root CA certificate to the machine. To download the certificate, do the following:

    1. In a web browser, navigate to the FQDN of Ops Manager and log in.
    2. In Ops Manager, navigate to Settings in the drop-down menu under your user name.
    3. Click Advanced Options.
    4. On the Advanced Options configuration page, click Download Root CA Cert.
    5. Move the certificate to a secure location on your machine and record the path.
  3. Proceed to the Log In as a UAA Admin section to create admin users with UAAC.



Step 2: Log In as a UAA Admin

Before creating TKGI users, you must log in to the UAA server as a UAA admin. To log in to the UAA server, do the following:

  1. Retrieve the UAA management admin client secret:

    1. In a web browser, navigate to the Ops Manager Installation Dashboard and click the Tanzu Kubernetes Grid Integrated Edition tile.

    2. Click the Credentials tab.

    3. Click Link to Credential next to Pks Uaa Management Admin Client and copy the value of
      secret.

  2. Target your UAA server by running the following command:

    uaac target https://TKGI-API:8443 --ca-cert CERTIFICATE-PATH
    

    Where:

    • TKGI-API is the domain name of your TKGI API server. You entered this domain name in the Tanzu Kubernetes Grid Integrated Edition tile > TKGI API > API Hostname (FQDN).
    • CERTIFICATE-PATH is the path to your Ops Manager root CA certificate. Provide this certificate to validate the TKGI API certificate with SSL.

      • If you are logged in to the Ops Manager VM, specify /var/tempest/workspaces/default/root_ca_certificate as the path. This is the default location of the root certificate on the Ops Manager VM.
      • If you downloaded the Ops Manager root CA certificate to your machine, specify the path where you stored the certificate.

      For example:

      $ uaac target api.tkgi.example.com:8443 --ca-cert /var/tempest/workspaces/default/root_ca_certificate
      

      Note: If you receive an Unknown key: Max-Age = 86400 warning message, you can ignore it because it has no impact.

  3. Authenticate with UAA by running the following command:

    uaac token client get admin -s ADMIN-CLIENT-SECRET
    

    Where ADMIN-CLIENT-SECRET is your UAA management admin client secret that you retrieved in a previous step. The client user name is admin.



Step 3: Assign TKGI Cluster Scopes

The pks.clusters.manage and pks.clusters.admin UAA scopes grant users the ability to create and manage Kubernetes clusters in TKGI. For information about UAA scopes in TKGI, see UAA Scopes for Tanzu Kubernetes Grid Integrated Edition Users.

To create TKGI users with the pks.clusters.manage or pks.clusters.admin UAA scope, perform one or more of the following procedures based on your UAA configuration and the needs of your deployment:



Next Step

After you create admin users in TKGI, the admin users can create and manage Kubernetes clusters in TKGI. For more information, see Managing Kubernetes Clusters and Workloads.

check-circle-line exclamation-circle-line close-line
Scroll to top icon