Install {istio} by following the instructions in the official {istio} Getting started documentation.
Run the following command to verify that the istioctl path was set successfully:
istioctl versionThe output will be similar to the following example:
no running Istio pods in "istio-system"
1.24.2Run the following command to configure the {istio} profile on {kube}:
istioctl install --set profile=demoThe following output appears when the installation is complete:
✔ Istio core installed
✔ Istiod installed
✔ Egress gateways installed
✔ Ingress gateways installed
✔ Installation completeVerify that Istio was successfully deployed by running the following command:
kubectl get deployments -n istio-systemAll the values in the AVAILABLE column will have a value of 1 after
the deployment is complete.
NAME READY UP-TO-DATE AVAILABLE AGE
istio-egressgateway 1/1 1 1 2m48s
istio-ingressgateway 1/1 1 1 2m48s
istiod 1/1 1 1 2m48sEnsure that the {istio} deployments are all available before you continue. The deployments might take a few minutes to become available. If the deployments aren’t available after a few minutes, then increase the amount of memory available to your {kube} cluster. On Docker Desktop, you can increase the memory from your {docker} preferences. On {minikube}, you can increase the memory by using the --memory flag.
Finally, create the istio-injection label and set its value to enabled:
kubectl label namespace default istio-injection=enabledAdding this label enables automatic {istio} sidecar injection. Automatic injection means that sidecars are automatically injected into your pods when you deploy your application.