forked from GoogleCloudPlatform/istio-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cleanup, common Istio install, Hipstershop 0.1.3 (GoogleCloudPlatform#48
) * Remove github action * common istio installation * Security intro * ILB * multicluster ingress * mesh expansion * single control plane * dual ctrl * [bot] generate YAML region tags 28/12/2019 21:21:54 * [bot] generate YAML region tags 28/12/2019 21:22:22 * fix formatting
- Loading branch information
Showing
99 changed files
with
521 additions
and
4,245 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,15 @@ | ||
.DS_Store | ||
*.pem | ||
*.env | ||
*.pem | ||
*.tar.gz | ||
cluster-2 | ||
istio_master.yaml | ||
istio-1* | ||
istio-2* | ||
*.tar.gz | ||
istio.yaml | ||
istio-master.yaml | ||
istio_master.yaml | ||
istio-remote.yaml | ||
cluster-2 | ||
kubectx | ||
kubemci | ||
istio.yaml | ||
kubeconfig | ||
kubectx | ||
kubemci* | ||
region-tag-adder |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
# Copyright 2020 Google LLC | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
#!/bin/bash | ||
|
||
# installs standard single-cluster Istio on GKE + the Istio Stackdriver adapter | ||
|
||
# Download Istio | ||
WORKDIR="`pwd`" | ||
ISTIO_VERSION="${ISTIO_VERSION:-1.4.2}" | ||
log "Downloading Istio ${ISTIO_VERSION}..." | ||
curl -L https://git.io/getLatestIstio | ISTIO_VERSION=$ISTIO_VERSION sh - | ||
|
||
|
||
# Prepare for install | ||
kubectl label namespace default istio-injection=enabled | ||
kubectl create namespace istio-system | ||
|
||
kubectl create clusterrolebinding cluster-admin-binding \ | ||
--clusterrole=cluster-admin \ | ||
--user=$(gcloud config get-value core/account) | ||
|
||
helm template ${WORKDIR}/istio-${ISTIO_VERSION}/install/kubernetes/helm/istio-init --name istio-init --namespace istio-system | kubectl apply -f - | ||
sleep 20 | ||
|
||
|
||
# customize | ||
if [ "$ILB_ENABLED" == "true" ]; then | ||
ILB="--set gateways.istio-ilbgateway.enabled=true" | ||
else | ||
ILB="--set gateways.istio-ilbgateway.enabled=false" | ||
fi | ||
|
||
if [ "$MESH_EXPANSION" == "true" ]; then | ||
ENABLE_VM="--set global.meshExpansion.enabled=true" | ||
else | ||
ENABLE_VM="--set global.meshExpansion.enabled=false" | ||
fi | ||
|
||
|
||
# installs Istio with Envoy access logging enabled | ||
helm template ${WORKDIR}/istio-${ISTIO_VERSION}/install/kubernetes/helm/istio --name istio --namespace istio-system \ | ||
--set prometheus.enabled=true \ | ||
--set tracing.enabled=true \ | ||
--set kiali.enabled=true --set kiali.createDemoSecret=true \ | ||
--set "kiali.dashboard.jaegerURL=http://jaeger-query:16686" \ | ||
--set "kiali.dashboard.grafanaURL=http://grafana:3000" \ | ||
--set grafana.enabled=true \ | ||
--set mixer.policy.enabled=false \ | ||
${ILB} \ | ||
${ENABLE_VM} \ | ||
--set global.proxy.accessLogFile="/dev/stdout" >> istio.yaml | ||
|
||
# install istio | ||
kubectl apply -f istio.yaml | ||
|
||
# install the Stackdriver adapter | ||
git clone https://github.com/istio/installer && cd installer | ||
helm template istio-telemetry/mixer-telemetry --execute=templates/stackdriver.yaml -f global.yaml --set mixer.adapters.stackdriver.enabled=true --namespace istio-system | kubectl apply -f - | ||
cd .. | ||
|
||
rm -rf installer/ |
This file contains 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
This file contains 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
This file contains 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.