Enable Istio Proxy Sidecar Injection
Table of Contents
Links
🌙 Lab
🗒 Tutorial
Details
Istio is a service mesh that provides a separate infrastructure layer to handle inter-service communication. Network communication is abstracted from the services themselves and handled by proxies. Istio uses a sidecar design, which means that communication proxies run in their own containers beside every service container. To put Istio automatic sidecar injection into effect, the namespace to be used by an application must be labeled with istio-injection=enabled
.
This tutorial uses an existing Highly Available Kubernetes cluster running on Oracle Cloud Native Environment, and has the following modules deployed:
- Kubernetes (
kubernetes
) - Oracle Cloud Infrastructure Cloud Controller Manager Module (
oci-ccm
)
The starting deployment consists of the following:
- 1 Operator Node
- 3 Control Plane Nodes
- 5 Worker Nodes
It builds upon the labs:
- Deploy Oracle Cloud Native Environment
- Deploy an External Load Balancer with Oracle Cloud Native Environment
- Use OCI Cloud Controller Manager on Oracle Cloud Native Environment
Objectives
This tutorial/lab shows how to install Istio and then enable automatic proxy sidecar injection, and thus take advantage of Istio’s features in Oracle Cloud Native Environment.
The following steps will be outlined:
- Install the Istio module.
- Deploy an application without automatic proxy sidecar injection enabled.
- Remove the deployment.
- Enable automatic proxy sidecar injection.
- Deploy the same application again - notice that the pods in the service mesh are executing with an associated Istio sidecar proxy.
Prerequisites
Note: If using the free lab environment these prerequisites are provided as the starting point.
- Systems should have:
- A minimum of latest Oracle Linux 8 (x86_64) installed and running the Unbreakable Enterprise Kernel Release 6 (UEK R6).
- Completed the prerequisite steps to install Oracle Cloud Native Environment.
- The Istio module already configured. For more information on deploying the Istio module, see the Oracle Cloud Native Environment Documentation.