Cluster Access
Kubernetes Cluster Access
kubectl command-line client. The platform provides the access token and connection information required for both methods.
Access via Kubernetes Dashboard
1Get the dashboard URL and token
After cluster installation completes, the success pop-up displays the Kubernetes Dashboard link together with the access token required to sign in. The same access information is also sent in the installation email notification.
2Sign in with the token
Open the Kubernetes Dashboard link, select the Token authentication option, paste the provided access token, and sign in.
kubectl locally and configure the appropriate Kubernetes context.
Recover a Lost Access Token
If the installation email or original access token is no longer available, retrieve the token from a Kubernetes master node, for example through Web SSH.
kubectl -n kube-system describe secret $(kubectl -n kube-system get secret | grep fulladmin | awk '{print $1}') | grep 'token:' | sed -e's/token:\| //g'
Access via kubectl
kubectl is the standard Kubernetes command-line client. The platform automatically installs it on all Kubernetes master nodes, so cluster management can begin immediately after connecting to a master node over SSH.
kubectl client.
kubectl on your workstation and configure the Remote API endpoint and token.
For local access, install kubectl on your computer and configure a cluster, user, and context using the Remote API URL and cluster access token.
kubectl config set-cluster jelastic --server={api-endpoint} && \
kubectl config set-context jelastic --cluster=jelastic && \
kubectl config set-credentials user --token={token} && \
kubectl config set-context jelastic --user=user && \
kubectl config use-context jelastic
Replace {api-endpoint} with the Kubernetes Remote API URL and {token} with the access token.
Enable Remote API Access
If Remote API access was not enabled during the initial Kubernetes package installation, it can be enabled later through the built-in add-on on the master node.
1Open master-node add-ons
In the platform dashboard, open the Kubernetes master node and click Add-Ons.
2Enable Remote API
Open Kubernetes Cluster Configuration and select the Remote API option.
Verify kubectl Connection
After the local kubectl context is configured, verify connectivity by requesting the pods in the default namespace.
kubectl get pods
If access is configured correctly, the command returns information about pods running in the default namespace.
kubectl. For remote command-line management, make sure Remote API access is enabled and protect the API endpoint and token carefully.
