Unless you're planning to be the only person in your organization with the access to the cluster, you'll need to create a kubectl configuration that you can distribute to your coworkers. Let's see the steps:
cd cluster mkdir -p config export KUBECONFIG=$PWD/config/kubecfg.yaml
We went back to the cluster directory, created the sub-directory config, and exported KUBECONFIG variable with the path to the file where we'd like to store the configuration. Now we can execute kops export:
kops export kubecfg --name ${NAME} cat $KUBECONFIG
The output of the latter command is as follows:
apiVersion: v1 clusters: - cluster: certificate-authority-data: ... server: https://api-devops23-k8s-local-ivnbim-609446190.us-east-2.elb.amazonaws.com name: devops23.k8s.local contexts: - context: cluster: devops23...