If your revision name is not default
, you can still use the istio-injection=enabled
label. To do so, you must first create an IstioRevisionTag
resource named default
that points to your Istio
resource.
Istio
resource is created, and Istio has been deployed by the Operator.IstioCNI
resource has been created, and the required IstioCNI
pods are deployed by the Operator.bookinfo
namespace, but sidecar injection (as described in step 2) is not yet configured. Refer to "Deploying the Bookinfo application" for further information.To find the name of your Istio
resource, execute the following command:
Example output
In this case, the Istio
resource is named default
, but its underlying revision is default-v1-26-3
.
Define the IstioRevisionTag
resource in a YAML file:
Example IstioRevisionTag
Resource YAML
Apply the IstioRevisionTag
resource using this command:
Confirm the successful creation of the IstioRevisionTag
resource with the following command:
Example output
As shown in the example, the new tag now references your active revision, default-v1-26-3
. Now you can use the istio-injection=enabled
label as if your revision was called default
.
Check that the pods are running without sidecars by executing the command below. All existing workloads in the target namespace should display 1/1
in the READY
containers column.
Example output
Add the injection label to the bookinfo
namespace with the following command:
Example output
To activate sidecar injection, trigger a redeployment of the workloads in the bookinfo
namespace by running this command:
Check the rollout's success by running the command below and confirming that the newly created pods show 2/2
containers in the READY
column:
Example output