Let's perform the following steps to install Istio:
- Create the Istio CRDs that are required before we can deploy Istio:
$ helm install install/kubernetes/helm/istio-init --name istio-init
--namespace istio-system
- Install Istio with the default configuration. This will deploy the Istio core components, that is, istio-citadel, istio-galley, istio-ingressgateway, istio-pilot, istio-policy, istio-sidecar-injector, and istio-telemetry:
$ helm install install/kubernetes/helm/istio --name istio
--namespace istio-system
- Enable automatic sidecar injection by labeling the namespace where you will run your applications. In this recipe, we will be using the default namespace:
$ kubectl label namespace default istio-injection=enabled
To be able to get Istio functionality for your application, the pods need to run an Istio sidecar proxy. The preceding command will automatically inject the Istio sidecar. As an alternative, you can find the instructions for manually adding Istio sidecars to your pods using the istioctl command in the Installing the Istio sidecar instructions link provided in the See also section.