This repo is designed to help you quickly "set sail" with Istio on Rancher's deployment of Kubernetes. This guide will help you stand up the BookInfo demo app from Itsio's docs site.
- Deploy Rancher 1.6 or higher, create K8 environment.
- Install
kubectl
locally. This is the CLI tool for K8 and will allow us to make API calls to the cluster. - Download the
kubectl
config for your new deployment of K8. In Rancher, navigate to Kubernetes > CLI and click "Generate Config". Place the contents contents in~/.kube/config
- Install Helm locally. At the time of this writing, Rancher 1.6 supports helm/tiller 2.3, so you want to have a 2.3.x helm client. This is the helm client which will use the information we previously setup in
~/.kube/config
to talk to our K8 cluster. We don't need to setup tiller because it is already included in the Rancher distribution. - Add the Kubernetes Incubator Helm chart repo:
helm repo add incubator http://storage.googleapis.com/kubernetes-charts-incubator
Special thanks to the folks who worked on this helm chart. - Deploy the chart
helm install -n istio incubator/istio
- Run
deploy-rancher.sh
to apply the K8 services.
- From the root of this repo directory, Run:
istioctl_bin=$PWD/bin/istioctl
- While in the same directory, run
kubectl apply -f <(istioctl kube-inject -f samples/apps/bookinfo/bookinfo.yaml)
- Run
kubectl get ingress -o wide
to get the IP address of the Istio ingress. - You should then be able to view
BookInfo
in your browser at http://$GATEWAYURL/productpage - See https://istio.io/docs/samples/bookinfo.html for more information on this app
Have you developed something cool with Istio on Rancher? We'd love to hear about it. Feel free to drop us a line on twitter (@Rancher_Labs) or our user slack https://slack.rancher.io/.