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.
REGISTRY_ONLY
mode.codeModulesImage
field is specified in the CSI Driver configuration.ServiceEntry
for CSI DriverCreate 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 of ServiceEntry
for docker.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