To access the Kubernetes cluster using either a proxy or a jumper, you have to perform the following actions.
- Add TKGI API Address <TKGI FQDN> to /etc/hosts.
The IP and FQDN details can be found in TKGI Deployment Metadata.
- On Proxy/Jumper, run
pks login -a <TKGI FQDN>-u admin -p <TKGI Admin User Password> -kto log in to the TKGI environment.TKGI FQDN and Admin credentials can be found in Deployment Metadata.
pks get-credentials <cluster-name>to get the cluster credentials.
kubectl config use-context <cluster-name>to start your cluster.You can view the active nodes and pods with the kubectl commands.
- To know how to run a sample container, see this link.