Create Service Account Token

Prior to configuring the Kubernetes container, you must establish a connection to the Kubernetes API server and generate the service account token.

The following are the steps to create a service account token:

  1. Create a service account token for GigaVUE-FM.kubectl create serviceaccount <serviceaccountname>
  2. View the service account information and token name. kubectl describe serviceaccounts <serviceaccountname>
  3. Get the token as an input to GigaVUE-FM.kubectl describe secret <secret value in the above output>
  4. Create the cluster role binding with a (admin) role that has proper permissions. kubectl create clusterrolebinding <clusterrolebindingname> --clusterrole=cluster-admin --serviceaccount=default:<serviceaccountname>
  5. Create a docker registry key with the input to the FM connection.kubectl create secret docker-registry <docker-key-name> --docker-server=<your-registry-server> --docker-username=<your-name> --docker-password=<your-pword>
  6. Patch the service account with the key.kubectl patch serviceaccount <serviceaccountname> -p '{"imagePullSecrets": [{"name": "<docker-key-name>"}]}'
  7. Display the API endpoint IP and port for GigaVUE-FM.kubectl cluster-info