@ -5,7 +5,7 @@ NOTE:
* The master branch is tested with Docker for Mac/Windows 18.06 (with Kubernetes 1.10.3). If you want to use Docker for Mac/Windows 18.03, please use the 18.03 branch ```git checkout 18.03```
* If you run on Windows, please execute following commands in Bash shell
Install Docker for Mac or Windows
### Enable Kubernetes on Docker for Mac or Windows
Config registry mirror for Docker daemon with ```https://registry.docker-cn.com```
@ -61,3 +61,62 @@ Access dashboard
http://localhost:8001/api/v1/namespaces/kube-system/services/https:kubernetes-dashboard:/proxy/#!/overview?namespace=default
```
### Install Helm
Install helm client following the instruction on https://github.com/helm/helm/blob/master/docs/install.md
```
# Use homebrew on Mac
brew install kubernetes-helm
# Install Tiller into your Kubernetes cluster
helm init --upgrade -i registry.cn-hangzhou.aliyuncs.com/google_containers/tiller:v2.9.1
# update charts repo
helm repo update
```
### Install Istio
More details can be found in https://istio.io/docs/setup/kubernetes/
Download Istio 1.0.0 and install CLI
```
curl -L https://git.io/getLatestIstio | sh -
cd istio-1.0.0/
export PATH=$PWD/bin:$PATH
```
Install Istio with Helm chart
```
kubectl apply -f install/kubernetes/helm/istio/templates/crds.yaml
helm install install/kubernetes/helm/istio --name istio --namespace istio-system
helm status istio
```
Enable automatic sidecar injection for ```default``` namespace
```
kubectl label namespace default istio-injection=enabled
kubectl get namespace -L istio-injection
```
Install Book Info sample
```
kubectl apply -f samples/bookinfo/platform/kube/bookinfo.yaml
# confirm application is running
export GATEWAY_URL=localhost:80
curl -o /dev/null -s -w "%{http_code}\n" http://${GATEWAY_URL}/productpage
```
Delete Istio
```
helm del --purge istio
```