Accessing the K8s Clusters from Local
- Install the below command line Utilities in Local
- kubectl
- vault
- kubectx
- 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.
- 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.
- 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?