Skip to content

andreasdvorak/Azure_AKS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Azure Kubernetes

Set up a small and free Kubernetes Cluster in Azure

Preparations

Azure CLI

The following did not work for me.

lsb_release -cs shows virginia but there is no virginia on the web site

https://packages.microsoft.com/repos/azure-cli/dists/

https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-linux?pivots=apt

This did work

curl -L https://aka.ms/InstallAzureCli | bash

az extension

I don´t know why but without the aks-preview extention I get an error setting up the AKS cluster

az extension add -n aks-preview
az extension list
az version

az login

To run the terraform apply you first need to login at Azure

az login

Get Azure Regions

az account list-locations -o table

List Subscriptions

az account list

Code

terraform.tfvars

put in here all secret values

This file should not be put in git, because it contains secrets.

Check .gitignore

client access values

To access Azure with Terraform you need a client_id client_secret

Create a user e.g. terraform in https://entra.microsoft.com

In the overview you get the client id

To to certifcates & secrets and create a secret client key. Copy the value.

locals.tf

put in here all values, but no secrets

Terraform commands

initialze Terraform

terraform init [-upgrade]

Terraform Validate

terraform validate

create a Terraform execution plan

terraform plan -var-file="terraform.tfvars"

execute Terraform

terraform apply -var-file="terraform.tfvars"

delete all remote objets

terraform destroy

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages