|
|
@ -20,7 +20,7 @@ $dns = $externalDns |
|
|
|
|
|
|
|
# Instalamos Istio |
|
|
|
# Specify the Istio version that will be leveraged throughout these instructions |
|
|
|
$ISTIO_VERSION="1.0.6" |
|
|
|
$ISTIO_VERSION="1.1.1" |
|
|
|
|
|
|
|
# Windows |
|
|
|
$ProgressPreference = 'SilentlyContinue'; |
|
|
@ -28,7 +28,7 @@ $ProgressPreference = 'SilentlyContinue'; |
|
|
|
Invoke-WebRequest -URI "https://github.com/istio/istio/releases/download/$ISTIO_VERSION/istio-$ISTIO_VERSION-win.zip" -OutFile "istio-$ISTIO_VERSION.zip" |
|
|
|
Remove-Item istio-$ISTIO_VERSION -Recurse -ErrorAction Ignore |
|
|
|
Expand-Archive -Path "istio-$ISTIO_VERSION.zip" -DestinationPath . |
|
|
|
|
|
|
|
Pause |
|
|
|
if($installIstioOnSystem -eq $true) { |
|
|
|
New-Item -ItemType Directory -Force -Path "C:\Program Files\Istio" |
|
|
|
mv ./istio-$ISTIO_VERSION/bin/istioctl.exe "C:\Program Files/Istio/" |
|
|
@ -49,7 +49,7 @@ kubectl -n istio-system create secret generic kiali --from-literal=username=$kia |
|
|
|
|
|
|
|
|
|
|
|
Write-Host "Deploying Istio in the cluster" -ForegroundColor Green |
|
|
|
helm install istio-$ISTIO_VERSION/install/kubernetes/helm/istio --wait --name istio --namespace istio-system --set global.controlPlaneSecurityEnabled=true --set grafana.enabled=true --set tracing.enabled=true --set kiali.enabled=true |
|
|
|
helm install istio-$ISTIO_VERSION/install/kubernetes/helm/istio --wait --name istio --namespace istio-system --set global.mtls.enabled=false --set global.controlPlaneSecurityEnabled=false --set grafana.enabled=true --set tracing.enabled=true --set kiali.enabled=true |
|
|
|
|
|
|
|
Write-Host "Setting Up Gateway" |
|
|
|
kubectl delete gateway istio-autogenerated-k8s-ingress -n istio-system |
|
|
@ -84,7 +84,7 @@ $charts = ("eshop-common", "apigwmm", "apigwms", "apigwwm", "apigwws", "basket-a |
|
|
|
if ($deployInfrastructure) { |
|
|
|
foreach ($infra in $infras) { |
|
|
|
Write-Host "Installing infrastructure: $infra" -ForegroundColor Green |
|
|
|
helm install --values app.yaml --values inf.yaml --set app.name=$appName --set inf.k8s.dns=$externalDns --name="$appName-$infra" $infra |
|
|
|
helm install --values app.yaml --values inf.yaml --set app.name=$appName --set inf.k8s.dns=$externalDns --name="$appName-$infra" $infra |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|