Skip to content

Kubernetes setup & test

Elbrus edited this page Apr 2, 2022 · 5 revisions

Deployment process

Banner

Kubernetes

Kubernetes is a portable, extensible, open-source platform for managing containerized workloads and services, that facilitates both declarative configuration and automation. It has a large, rapidly growing ecosystem. Kubernetes services, support, and tools are widely available.

Useful resources:

Good articles:

K8s awesome:

Setupping Azure Kubernetes Service

  1. On the Azure portal menu or from the Home page, select Create a resource.

  2. Select Containers > Kubernetes Service.

image

  1. On the Basics page, configure the following options:

Project details:

  • Select an Azure Subscription - Azure for Students.
  • Select or create an Azure Resource group, such as AKS_RG.

Cluster details:

  • Ensure the the Preset configuration is Dev/Test($).
  • Enter a Kubernetes cluster name, such as kube_master.
  • Select a Region and Kubernetes version for the AKS cluster.

Primary node pool:

  • Leave the default values selected.

image

  1. Select Next: Node pools when complete.

  2. Keep the default Node pools options.

  3. Networking section

image

  1. Click Review + create and then Create when validation completes.

It takes a few minutes to create the AKS cluster.

Integration k8s to vscode

  1. Download necessary vscode plugins/extensions

Kubernetes:

image

Kubernetes Support:

image

Kubernetes Templates:

image

  1. Go to the Azure AKS Web Panel, execute a shell and run command:
az aks get-credentials --resource-group AKS_RG --name kube_master
  1. Download kubernetes config

image

  1. Setup kube config in vscode

image

  1. Result

image