Last active
June 19, 2019 22:47
-
-
Save JeremyVV/3e1d6f37d55182f7a8ed964d61dd5b09 to your computer and use it in GitHub Desktop.
[Download Windows minikube.exe] Gets the latest version #kubernetes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <#PSScriptInfo | |
| .VERSION 1.0 | |
| .GUID 9160606f-bd5f-4d3d-92d3-a6d273efc48f | |
| .AUTHOR [email protected] | |
| .COMPANYNAME | |
| .COPYRIGHT | |
| .TAGS | |
| .LICENSEURI | |
| .PROJECTURI | |
| .ICONURI | |
| .EXTERNALMODULEDEPENDENCIES | |
| .REQUIREDSCRIPTS | |
| .EXTERNALSCRIPTDEPENDENCIES | |
| .RELEASENOTES | |
| #> | |
| <# | |
| .DESCRIPTION | |
| Downloads the latest minikube for windows | |
| #> | |
| Param( | |
| $Downloadlocation = $env:TEMP | |
| ) | |
| $repo = "kubernetes/minikube" | |
| $file = "minikube-windows-amd64.exe" | |
| $releases = "https://api.github.com/repos/$repo/releases" | |
| Write-Host Determining latest release | |
| $tag = (Invoke-WebRequest $releases | ConvertFrom-Json)[0].tag_name | |
| $download = "https://github.com/$repo/releases/download/$tag/$file" | |
| $name = "minikube.exe" | |
| Write-Host Dowloading latest release - $tag | |
| Invoke-WebRequest $download -Out $Downloadlocation\$name | |
| Write-Host | |
| Write-Host -ForegroundColor Magenta "You can now start minikube from $Downloadlocation." | |
| Write-Host "Vist https://www.assistanz.com/installing-minikube-on-windows-10-home-edition-using-virtualbox/ and https://medium.com/@wisegain/minikube-cheat-sheet-a273385e66c9 for next steps" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment