You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
753 B

  1. # Specify the Istio version that will be leveraged throughout these instructions
  2. $ISTIO_VERSION="1.0.6"
  3. # Windows
  4. $ProgressPreference = 'SilentlyContinue';
  5. [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
  6. Invoke-WebRequest -URI "https://github.com/istio/istio/releases/download/$ISTIO_VERSION/istio-$ISTIO_VERSION-win.zip" -OutFile "istio-$ISTIO_VERSION.zip"
  7. Expand-Archive -Path "istio-$ISTIO_VERSION.zip" -DestinationPath .
  8. cd istio-$ISTIO_VERSION
  9. New-Item -ItemType Directory -Force -Path "C:\Program Files\Istio"
  10. mv ./bin/istioctl.exe "C:\Program Files/Istio/"
  11. $PATH = [environment]::GetEnvironmentVariable("PATH", "User")
  12. [environment]::SetEnvironmentVariable("PATH", $PATH + "; C:\Program Files\Istio", "User")