TIS1201 - Missing Addresses from Matching WorkloadEntries
One or more addresses are missing from the matching WorkloadEntries
.
WorkloadEntry
Addresses Are Registered in ServiceEntry
To ensure that WorkloadEntries
are properly recognized in the mesh, create a corresponding ServiceEntry
that includes the address specified in the WorkloadEntry
.
Examples
-
WorkloadEntry
Without a CorrespondingServiceEntry
AddressapiVersion: networking.istio.io/v1beta1
kind: WorkloadEntry
metadata:
name: external-workload
namespace: example-namespace
spec:
address: "192.168.1.10"
labels:
app: external-app
serviceAccount: "external-service-account"Explanation: The
WorkloadEntry
defines an address (192.168.1.10
) that should be part of the service mesh. However, there is no correspondingServiceEntry
with this address, which means that Istio cannot properly recognize and route traffic to the workload.
Recommendation
Add the missing ServiceEntry
with the matching address to ensure that the WorkloadEntry
is recognized and can be reached by the mesh.
-
Add a Corresponding
ServiceEntry
for theWorkloadEntry
AddressCreate a
ServiceEntry
that includes the address specified in theWorkloadEntry
.apiVersion: networking.istio.io/v1beta1
kind: ServiceEntry
metadata:
name: external-service
namespace: example-namespace
spec:
hosts:
- "external-app.example.com"
addresses:
- "192.168.1.10"
ports:
- number: 80
name: http
protocol: HTTP
location: MESH_EXTERNAL
resolution: STATICExplanation: Adding a
ServiceEntry
with the matching address ensures that theWorkloadEntry
is properly registered in the service mesh. This allows Istio to recognize the workload and route traffic to it, enabling seamless communication between workloads.