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