【注意】最后更新于 January 17, 2020，文中内容可能已过时，请谨慎使用。
To get started with Istio, just follow these three steps:
- [Set up your platform](#Set up your platform)
- [Download the release](#Download the release)
- [Install Istio]
Set up your platform
Before you can install Istio, you need a cluster running a compatible version of Kubernetes. Istio 1.4 has been tested with Kubernetes releases 1.13, 1.14, 1.15.
Create a cluster by selecting the appropriate platform-specific setup instructions.
Some platforms provide a
managed control plane which you can use instead of installing Istio manually. If this is the case with your selected platform, and you choose to use it, you will be finished installing Istio after creating the cluster, so you can skip the following instructions. Refer to your platform service provider for further details and instructions.
Download the release
Download the Istio release which includes installation files, samples, and the istioctl command line utility.
Go to the Istio release page to download the installation file corresponding to your OS. Alternatively, on a macOS or Linux system, you can run the following command to download and extract the latest release automatically:
$ curl -L https://istio.io/downloadIstio | sh -
Move to the Istio package directory. For example, if the package is istio-1.4.3:
$ cd istio-1.4.3
The installation directory contains:
- Installation YAML files for Kubernetes in install/kubernetes
- Sample applications in samples/
- The istioctl client binary in the bin/ directory. istioctl is used when manually injecting Envoy as a sidecar proxy.
Add the istioctl client to your path, on a macOS or Linux system:
$ export PATH=$PWD/bin:$PATH
You can optionally enable the auto-completion option when working with a bash or ZSH console.
These instructions assume you are new to Istio, providing streamlined instruction to install Istio’s built-in
demo configuration profile. This installation lets you quickly get started evaluating Istio. If you are already familiar with Istio or interested in installing other configuration profiles or a more advanced deployment model, follow the installing with istioctl instructions instead.
The demo configuration profile is not suitable for performance evaluation. It is designed to showcase Istio functionality with high levels of tracing and access logging.
- Install the demo profile
$ istioctl manifest apply –set profile=demo
- Verify the installation by ensuring the following Kubernetes services are deployed and verify they all have an appropriate CLUSTER-IP except the jaeger-agent service:
If your cluster is running in an environment that does not support an external load balancer (e.g., minikube), the
<pending>. To access the gateway, use the service’s
NodePort, or use port-forwarding instead.
Also ensure corresponding Kubernetes pods are deployed and have a
With Istio installed, you can now deploy your own application or one of the sample applications provided with the installation.
The application must use either the HTTP/1.1 or HTTP/2.0 protocols for all its HTTP traffic; HTTP/1.0 is not supported. When you deploy your application using
kubectl apply, the Istio sidecar injector will automatically inject Envoy containers into your application pods if they are started in namespaces labeled with
In namespaces without the
istio-injection label, you can use
istioctl kube-inject to manually inject Envoy containers in your application pods before deploying them:
$ istioctl kube-inject -f .yaml | kubectl apply -f -
If you are not sure where to begin, deploy the Bookinfo sample which will allow you to evaluate Istio’s features for traffic routing, fault injection, rate limiting, etc. Then explore the various Istio tasks that interest you.
The following tasks are a good place for beginners to start:
- Request routing
- Fault injection
- Traffic shifting
- Querying metrics
- Visualizing metrics
- Collecting logs
- Rate limiting
- Ingress gateways
- Accessing external services
- Visualizing your mesh
The next step is to customize Istio and deploy your own applications. Before you install and customize Istio to fit your platform and intended use, check out the following resources:
- Deployment models
- Deployment best practices
- Pod requirements
- General installation instructions
As you continue to use Istio, we look forward to hearing from you and welcoming you to our community.
The uninstall deletes the RBAC permissions, the
istio-system namespace, and all resources hierarchically under it. It is safe to ignore errors for non-existent resources because they may have been deleted hierarchically.
$ istioctl manifest generate –set profile=demo | kubectl delete -f -
上次更新 2020-01-17 (0d79e96)