Skip to main content

Getting Started

Prerequisites

If you are reading this page, we assume that you already have asked for a cluster creation using Thales postit portal.

Install the following packages

brew update && brew install azure-cli
brew install kubectl
brew install Azure/kubelogin/kubelogin

Access to the cluster

info

After the cluster creation, you receive by email:

  • K8SAAS_TENANT_ID: the tenant it
  • K8SAAS_SUBSCRIPTION_ID: the id of the subscription where your resources are deployed
  • K8SAAS_RESOURCE_NAME: the name of the kubernetes and the resource group

Keep these variables in a file:

touch set_k8saas_env_variables.sh
chmod u+x set_k8saas_env_variables.sh

Update YOUR_K8SAAS_TENANT_ID with the YOUR_K8SAAS_TENANT_ID value received by email:

echo "export K8SAAS_TENANT_ID=YOUR_K8SAAS_TENANT_ID" >> set_k8saas_env_variables.sh

Update K8SAAS_SUBSCRIPTION_ID with the YOUR_K8SAAS_SUBSCRIPTION_ID value received by email:

echo "export K8SAAS_SUBSCRIPTION_ID=YOUR_K8SAAS_SUBSCRIPTION_ID" >> set_k8saas_env_variables.sh

Update K8SAAS_RESOURCE_NAME with the YOUR_K8SAAS_RESOURCE_NAME value received by email:

echo "export K8SAAS_RESOURCE_NAME=YOUR_K8SAAS_RESOURCE_NAME" >> set_k8saas_env_variables.sh

Once, done, follow the following steps to get your nominative kubeconfig:

source set_k8saas_env_variables.sh
az login -t "$K8SAAS_TENANT_ID"
az aks get-credentials \
--name "$K8SAAS_RESOURCE_NAME" \
--resource-group "$K8SAAS_RESOURCE_NAME" \
--subscription "$K8SAAS_SUBSCRIPTION_ID"
kubelogin convert-kubeconfig -l azurecli

That's all !!! You should be able to access to your k8saas cluster

First steps & Configuration Check

Verify your kubectl context:

kubectl config get-contexts

You should see at least a line with your k8saas cluster, like:

CURRENT   NAME                                CLUSTER                             AUTHINFO                                                                          NAMESPACE
* k8saas-lja-273-sandbox k8saas-lja-273-sandbox clusterUser_k8saas-lja-273-sandbox_k8saas-lja-273-sandbox

Next steps & Start using k8saas

Who are you ?

Welcome in the kubernetes world ! To begin, we recommend to follow the simple tutorial, where you learn how to deploy a simple container from internet, and how to make it accessible from anyone.

Self service