Configure CSI Driver with Istio in registry-only mode
When using Istio configured to REGISTRY_ONLY
mode with the codeModulesImage
field for CSI Driver, you need to apply additional configuration to ensure proper communication with the image registry.
Prerequisites
- Istio is installed and configured in
REGISTRY_ONLY
mode. - Dynatrace CSI Driver is injected with Istio.
codeModulesImage
field is specified in the CSI Driver configuration.
Configure ServiceEntry
for CSI Driver
-
Create a
ServiceEntry
.The
ServiceEntry
configuration allows the Dynatrace CSI Driver to communicate with the specified image registry. Without this configuration, the image pull process will fail. See an example ofServiceEntry
fordocker.io
below.apiVersion: networking.istio.io/v1kind: ServiceEntrymetadata:name: codemodules-docker-ionamespace: dynatracespec:hosts:- index.docker.io- auth.docker.io- production.cloudflare.docker.comlocation: MESH_EXTERNALports:- name: https-443number: 443protocol: HTTPSresolution: DNS -
Apply the
ServiceEntry
.Save and apply the above configuration to a file.
kubectl apply -f serviceentry.yaml