Skip to main content

Accessing the K8s Clusters from Local

  1. Install the below command line Utilities in Local
  • kubectl
  • vault
  • kubectx
  1. Copy the script and execute the following command: https://github.com/Maersk-Global/platform-support/blob/master/scripts/perpetual-platform-kubeconfig.sh

perpetual-platform-kubeconfig.sh -c gda-np-westeurope-1 perpetual-platform-kubeconfig.sh -c gda-np-ne-01 perpetual-platform-kubeconfig.sh -c gda-prod-westeurope-1 perpetual-platform-kubeconfig.sh -c gda-prod-ne-01

This will create a new kube config file for each cluster, allowing you to connect to the Cluster and SMDS Namespaces.

  1. Once the Kubeconfig file is created, Use Lens to load the CLusters. Lens is graphical UI tool with better user experience and will be helpful for troubleshooting the issues.
  2. We can use the command line utilities to connect the cluster. Use kubectx command to switch across the Clusters.

https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands

Was this page helpful?