Skip to content

PatrickLang/kkna2018lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 

Repository files navigation

Kubecon Windows Lab VMs

There are a bunch of VMs set up with the software needed to run these demos. If you want to try this yourself today during the conference, follow the steps below. This was set up as a classroom lab using Azure Lab Services. The scripts used to customize the VMs are available at PatrickLang/KubernetesForWindowsTutorial

  1. Get a Windows remote desktop (RDP) client:
  • Mac – https://aka.ms/rdapps
  • Linux - Search for 'remmina' with your package manager or install FreeRDP
  • Windows - it's built-in (mstsc.exe)
  1. Browse to https://labs.azure.com/register/0mtpnnp7 , and complete signup if you don't have an account registered with Azure. This doesn't create a paid account, it's only a login for the lab. If you already have an Azure account, accessing this lab won't charge you anything.
  2. Look for the VM called 'kkna2018-lg'. If Connect is greyed out, click Start and wait a few minutes
  3. Click Connect. If you're on Windows or Mac, the browser should ask if you want to open the RDP file with Remote Desktop. If on Linux, save it to disk, then read Using Remmina
  4. Log in with username: kkna2018, password 7HandledWheel!

Once logged in, you need to run a few steps to get your KUBECONFIG and set up draft for the right registry.

Click the >_ icon on the taskbar to open up PowerShell

mkdir ~/.kube
curl.exe -L http://52.247.236.178/random -o $env:USERPROFILE\.kube\config
# Normally you would need a docker login before the next step, but it's already cached on the lab VMs
draft config set registry kkna2018reg.azurecr.io

Then, find your namespace and test out the connection to Kubernetes with:

kubectl config get-contexts
kubectl get pod

Be sure to remember your namespace - it's shown in kubectl config get-contexts

kubectl config get-contexts
CURRENT   NAME       CLUSTER      AUTHINFO        NAMESPACE
*         rascally   kkna2018w1   rascally-user   rascally

In this case, it's 'rascally'. We'll be using Helm later, and it will need an variable set to match this namespace:

$ENV:TILLER_NAMESPACE='rascally'

Now that you're set up, browse to https://github.com/PatrickLang/KubernetesForWindowsTutorial in the VM for the tutorial steps.

Using Remmina

I have found conflicting stories of whether Remmina should work with RDP files or not, but it didn't work for me on Ubuntu 18.04.1. The RDP file is just a simple key:type:value structure, so it's easy to find the connection string.

Example RDP file

full address:s:ml-lab-guid.eastus.cloudapp.azure.com:57472
prompt for credentials:i:1
username:s:~\kkna2018

Create a new session in Remmina and copy the FQDN and port number after full address:s: . Be sure to choose Color Depth: High Color for best compatibility. The AVC modes require libfreerdp to be compiled with h.264 support which isn't in Ubuntu's snap.

remmina settings

About

Login details for my Kubecon session's lab VMs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published