This guide will take you through the required tools and permissions that need to be in place for you to be able to operate your own NAIS application(s) directly from your laptop.
kubectl is a command-line tool used to manage your Kubernetes resources.
Check out the official documentation for instructions on how to install the binaries.
kubectl will by default look for a file named
config in the
$HOME/.kube/ folder. You can also override this by having the absolute path of the file in the environment variable
Connect to ScaleFT
In order to reach our clusters, you have to be connected to the right ScaleFT host. For GCP, it's one host per cluster (
prod-gcp), for on-premise you select
navTunnel app, click the icon. If you are not authenticated, it will open your browser and prompt you for your credentials. When done, click the icon again and select your cluster (see below)
When connecting to on-premise clusters, you need to authenticate with Azure AD.
$ kubectl config use-context prod-fss Switched to context "prod-fss". $ kubectl get pods To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code CR69DPQQZ to authenticate.
When prompted like above, go to the address and enter the code. You then log in with your NAV e-mail and password.
kubectl will update your
kubeconfig-file with the tokens needed to gain access to the cluster.
Google Cloud Platform (GCP)
First you need to install
gcloud following the instructions for your platform.
Once installed, you need to authenticate with Google using your NAV e-mail.
$ gcloud auth login
Make sure you are connected to the right cluster, and verify that it works.
$ kubectl config use-context prod-gcp Switched to context "prod-gcp". $ kubectl cluster-info gcp-terraform $ k cluster-info Kubernetes master is running at https://127.0.0.1:14131 ...