Skip to content

Instantly share code, notes, and snippets.

@ritasker
Created March 13, 2019 23:38
Show Gist options
  • Save ritasker/37722f520d27b10275dc7d71a372b3d0 to your computer and use it in GitHub Desktop.
Save ritasker/37722f520d27b10275dc7d71a372b3d0 to your computer and use it in GitHub Desktop.
Write-Host "Installing Chocolatey..." -ForegroundColor Yellow
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
$Env:Path += ";$Env:ALLUSERSPROFILE\chocolatey\bin"
choco --version
Write-Host "Installing K8S tools..." -ForegroundColor Yellow
choco install -y minikube kubernetes-cli
Write-Host "Setup Hyper-V Virtual Network Switch..." -ForegroundColor Yellow
$ether = Get-NetAdapter -Name 'Ethernet 2' ## Will need to check this
New-VMSwitch -Name externalSwitch -NetAdapterName $ether.Name -AllowManagementOS $true
Write-Host "Setup Minikube..." -ForegroundColor Yellow
minikube start --vm-driver hyperv --hyperv-virtual-switch "externalSwitch"
Write-Host "Setup Complete..." -ForegroundColor DarkGreen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment