Slide 1

Slide 1 text

Cloud Native Workshop PATRICK KOCH & LINDA KOLB

Slide 2

Slide 2 text

Task 1  Dev Container  GitHub Codespaces  Terraform configurations  Deployment of a Ubuntu Virtual Machine on Azure  Destruction of the resources Source GitHub Codespaces icon: https://education.github.com/experiences/primer_codespaces, Azure Icon: Azure Public Service Icons V14, Ubuntu Icon: https://en.m.wikipedia.org/wiki/File:Logo-ubuntu_cof-orange-hex.svg, Terraform Icon: HashiCorp Brand Kit

Slide 3

Slide 3 text

on-site / dev environment in the cloud user Terraform configuration in a GitHub Codespace Ubuntu virtual machine Source GitHub Codespaces icon: https://education.github.com/experiences/primer_codespaces, Azure Icons: Azure Public Service Icons V14, Ubuntu Icon: https://en.m.wikipedia.org/wiki/File:Logo-ubuntu_cof-orange-hex.svg, Terraform Icon: HashiCorp Brand Kit

Slide 4

Slide 4 text

Github Dev Container und Codespace erstellen Source GitHub Codespaces icon: https://education.github.com/experiences/primer_codespaces

Slide 5

Slide 5 text

Erstelle ein neues Git repository  Mit den Konfigurationsdateien für den Dev-Container und für den GitHub Codespace:  https://github.com/patkoch/azure_terraform_codespace

Slide 6

Slide 6 text

Anmeldung bei der Azure Subscription mittels Azure CLI  az login // bei Azure anmelden  Credentials: siehe beigelegten Usernamen/Passwort

Slide 7

Slide 7 text

Terraform Configuration adaptieren und Bereitstellung  https://github.com/patkoch/terraform-azure-virtual-machine-linux  RSA Schlüssel erstellen ssh-keygen -t rsa -f id_rsa  terraform init # Connection to the backend  Terraform Configuration adaptieren (variables.tf)  id_rsa.pub Pfad in variables.tf hinzufügen/kontrollieren  terraform fmt # .tf files automatisiert formatieren  terraform validate # .tf files auf Syntax checken  terraform plan –out tfplan # Plan erstellen  terraform apply tfplan # Ressourcen laut Plan deployen

Slide 8

Slide 8 text

Verbinden zu der Ubuntu VM  chmod 600 id_rsa  ssh -i id_rsa adminuser@  ls –la  exit

Slide 9

Slide 9 text

Ubuntu VM zerstören  terraform destroy # zerstört die Ressourcen

Slide 10

Slide 10 text

Task 2  Adapt your Dev Container: install kubectl  Update your kubeconfig file with the credentials of a Kubernetes cluster  Deployment of Linux Workloads on an Azure Kubernetes Cluster  Scaling the Workloads az aks get-credentials --resource-group myResourceGroup --name myAKSCluster Source AKS icon: Microsoft (Azure Public Service Icons)