Istio CNI installer image and daemonset for Kubernetes environments
Pull the latest version of this image from the Ghost registry. Pulling requires authentication — generate a token and run docker login first (see Authentication below).
The Ghost catalog is public to browse, but pulling images requires an account. Generate a pull token below (or from your Account → Tokens page) — you'll get a ready-to-paste docker login command, then docker pull works.
The username is generated automatically (it looks like robot$<project>+<auto-id>, not the name you typed) and is included in the docker login command above. The secret is shown only once when you create the token.
All Ghost images are signed with cosign. Verifying the signature before deployment ensures the image has not been tampered with.
Install cosign via brew install cosign or download from the Sigstore releases page.
Reference this image in your Dockerfile as a base layer:
This is a vendor-built FIPS-enabled image: its cryptography runs on FIPS 140-3 validated modules configured by the upstream vendor. You can inspect the image metadata:
| Standard | FIPS 140-3 |
| Crypto module | Vendor-configured validated modules |
| Cryptography | Validated modules only |
| Use case | Government, regulated industries, compliance workloads |
All examples in this guide use the public image. If you've mirrored the repository for your own use (for example, to your Docker Hub namespace), update your commands to reference the mirrored image instead of the public one.
For example:
registry.ghost-prod.alphabravo.io/ghost-base/<repository>:<tag><your-namespace>/dhi-<repository>:<tag>For the examples, you must first use docker login registry.ghost-prod.alphabravo.io to authenticate to the registry to pull the images.
This Docker Hardened Istio CNI image includes:
/usr/local/bin/install-cni, 102 MB) — copies the CNI plugin to the host node/opt/cni/bin/istio-cni, 52 MB) — handles pod network configurationFirst follow the authentication instructions for DHI in Kubernetes.
The Istio CNI image runs as a DaemonSet on each node in your Kubernetes cluster. It installs the CNI plugin binary and manages pod network namespace configuration. This image cannot be run standalone — it requires a Kubernetes cluster with CNI directory mounts.
Replace <secret name> with your Kubernetes image pull secret and <tag> with the image variant you want to use (for
example, 1.29.3-debian13).
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: istio-cni-node
namespace: istio-system
spec:
selector:
matchLabels:
k8s-app: istio-cni-node
template:
metadata:
labels:
k8s-app: istio-cni-node
spec:
hostNetwork: true
imagePullSecrets:
- name: <secret name>
containers:
- name: install-cni
image: registry.ghost-prod.alphabravo.io/ghost-base/istio-install-cni:<tag>
securityContext:
privileged: true
volumeMounts:
- name: cni-bin-dir
mountPath: /host/opt/cni/bin
- name: cni-net-dir
mountPath: /host/etc/cni/net.d
resources:
requests:
cpu: 100m
memory: 128Mi
limits:
cpu: 200m
memory: 256Mi
volumes:
- name: cni-bin-dir
hostPath:
path: /opt/cni/bin
- name: cni-net-dir
hostPath:
path: /etc/cni/net.d
This configuration:
hostNetwork: true) to manage node CNI configurationprivileged: true to install CNI binaries and modify iptables rulesUse istioctl to install Istio with the hardened CNI image:
$ istioctl install --set components.cni.enabled=true \
--set values.global.hub=registry.ghost-prod.alphabravo.io \
--set values.cni.image=istio-install-cni \
--set values.cni.tag=<tag>
$ helm install istio-cni istio/cni -n istio-system \
--set global.tag=registry.ghost-prod.alphabravo.io \
--set cni.image=istio-install-cni \
--set cni.tag=<tag>
The Istio CNI image supports configuration through environment variables in the DaemonSet spec:
| Variable | Description | Default | Required |
|---|---|---|---|
CNI_NET_DIR | Directory for CNI network configuration | /etc/cni/net.d | No |
CNI_BIN_DIR | Directory for CNI plugin binaries | /opt/cni/bin | No |
CNI_NETWORK_CONFIG | CNI plugin configuration JSON | (auto-generated) | No |
CNI_CONF_NAME | Name of the CNI configuration file | (auto) | No |
CHAINED_CNI_PLUGIN | Whether to chain with existing CNI plugins | true | No |
KUBECFG_FILE_NAME | Kubeconfig file name for API server access | ZZZ-istio-cni-kubeconfig | No |
LOG_LEVEL | Logging verbosity level | info | No |
AMBIENT_ENABLED | Enable ambient mesh support | false | No |
Example with custom configuration:
containers:
- name: install-cni
image: registry.ghost-prod.alphabravo.io/ghost-base/istio-install-cni:<tag>
env:
- name: LOG_LEVEL
value: "debug"
- name: AMBIENT_ENABLED
value: "true"
securityContext:
privileged: true
The CNI plugin configures iptables rules for traffic redirection when pods with Istio sidecars are scheduled,
eliminating the need for the privileged istio-init init container.
Deploy the DaemonSet and enable sidecar injection:
# Apply the CNI DaemonSet
$ kubectl apply -f istio-cni-daemonset.yaml
# Verify the CNI pods are running on each node
$ kubectl get pods -n istio-system -l k8s-app=istio-cni-node
NAME READY STATUS RESTARTS AGE
istio-cni-node-abc12 1/1 Running 0 30s
istio-cni-node-def34 1/1 Running 0 30s
# Enable sidecar injection for your namespace
$ kubectl label namespace default istio-injection=enabled
# Deploy a sample workload
$ kubectl apply -f https://raw.githubusercontent.com/istio/istio/release-1.29/samples/bookinfo/platform/kube/bookinfo.yaml
# Verify no privileged init containers are used
$ kubectl describe pod -l app=productpage | grep -A2 "Init Containers"
In ambient mode, the CNI plugin monitors pods and configures networking for the ambient mesh without sidecar injection.
# Install with ambient mode enabled
$ istioctl install --set profile=ambient \
--set values.global.hub=registry.ghost-prod.alphabravo.io \
--set values.cni.image=istio-install-cni
--set values.cni.tag=<tag>
# Label a namespace for ambient mesh
$ kubectl label namespace default istio.io/dataplane-mode=ambient
# Verify CNI is handling ambient networking
$ kubectl logs -n istio-system -l k8s-app=istio-cni-node | grep ambient
When running Istio in CI/CD test clusters (for example, with Kind or Minikube), configure the CNI for testing:
# Create a Kind cluster with CNI support
$ kind create cluster --config kind-config.yaml
# Install Istio with DHI CNI image
$ istioctl install --set components.cni.enabled=true \
--set values.global.hub=registry.ghost-prod.alphabravo.io \
--set values.cni.image=istio-install-cni \
--set values.cni.tag=<tag> \
--set values.cni.cniBinDir=/opt/cni/bin \
--set values.cni.cniConfDir=/etc/cni/net.d
| Feature | DOI (istio/install-cni) | DHI (registry.ghost-prod.alphabravo.io/ghost-base/istio-install-cni) |
|---|---|---|
| User | root | nonroot (runtime) / root (dev) |
| Shell | Yes | No (runtime) / Yes (dev) |
| Package manager | Yes (apt) | No (runtime) / Yes (dev) |
| Entrypoint | CMD install-cni | ENTRYPOINT install-cni |
| FIPS variant | No | Yes (FIPS + STIG + CIS) |
| Zero CVE commitment | No | Yes |
| Base OS | Ubuntu 24.04 | Ghost hardened images (Debian 13) |
| Uncompressed size | 309 MB | 283 MB (−8.4%) |
| Compliance labels | None | CIS (runtime), FIPS+STIG+CIS (fips) |
| End-of-life tracking | No | Yes |
Ghost hardened images come in different variants depending on their intended use. Image variants are identified by their tag.
Runtime variants are designed for production use and run the CNI plugin as a privileged container. These images typically:
com.docker.dhi.compliance: cis)Build-time variants typically include dev in the tag name and are intended for debugging and development. These
images typically:
FIPS variants include fips in the variant name and tag. They come in both runtime and build-time variants. These
variants use cryptographic modules that have been validated under FIPS 140, a U.S. government standard for secure
cryptographic operations. FIPS variants also include STIG and CIS compliance
(com.docker.dhi.compliance: fips,stig,cis). Use FIPS variants in regulated environments such as FedRAMP, government,
and financial services.
The Istio CNI Ghost hardened image is available in all variant types: runtime, dev, FIPS, and FIPS-dev. To view the image variants and get more information about them, select the Tags tab for this repository, and then select a tag.
To migrate your Istio CNI deployment to a Ghost hardened image, update your installation configuration. The following table lists common migration considerations.
| Item | Migration note |
|---|---|
| Base image | Replace docker.io/istio/install-cni with registry.ghost-prod.alphabravo.io/ghost-base/istio-install-cni in your DaemonSet, Helm values, or istioctl configuration. |
| Base OS | The official image uses Ubuntu 24.04; the DHI uses Debian 13 (Trixie). |
| Entry point | The DHI defines the CNI installer as an ENTRYPOINT rather than CMD. If your deployment overrides the command, use args instead of command in your pod spec. |
| Non-root user | By default, runtime images run as the nonroot user. The CNI binary handles privilege escalation internally via the privileged: true security context. |
| RBAC permissions | Ensure the DaemonSet ServiceAccount has appropriate ClusterRole bindings for pod monitoring and CNI configuration. |
| FIPS compliance | If your environment requires FIPS 140 validated cryptography, use tags with -fips suffix. FIPS variants also include STIG and CIS compliance. |
| Image pull secrets | Configure Kubernetes image pull secrets for the DHI registry. See the authentication instructions. |
| No shell | Runtime images don't contain a shell. Use dev images or Docker Debug for troubleshooting. |
| Volume mounts | Ensure your DaemonSet mounts /opt/cni/bin and /etc/cni/net.d from the host for CNI binary installation and configuration. |
The following steps outline the general migration process.
Find hardened images for your deployment.
A hardened image may have several variants. Inspect the image tags and find the image variant that meets your needs.
For production, use a runtime variant (for example, 1.29.3-debian13). For debugging, use a dev variant. For
regulated environments, use a fips variant.
Update your installation configuration.
Update the Istio CNI image reference in your DaemonSet manifest, Helm values, or istioctl install flags:
image: registry.ghost-prod.alphabravo.io/ghost-base/istio-install-cni:<tag>
Configure image pull authentication.
Create a Kubernetes secret for the DHI registry:
$ kubectl create secret docker-registry dhi-pull-secret \
--docker-server=registry.ghost-prod.alphabravo.io \
--docker-username=<username> \
--docker-password=<password> \
-n istio-system
Verify RBAC permissions.
Ensure the CNI DaemonSet ServiceAccount has the required permissions:
$ kubectl get clusterrolebinding | grep istio-cni
Validate the deployment.
After migration, verify the CNI pods are running and functioning:
$ kubectl get daemonset -n istio-system istio-cni-node
$ kubectl logs -n istio-system -l k8s-app=istio-cni-node --tail=20
The following are common issues that you may encounter during migration.
The hardened images intended for runtime don't contain a shell nor any tools for debugging. The recommended method for debugging applications built with Ghost hardened images is to use Docker Debug to attach to these containers. Docker Debug provides a shell, common debugging tools, and lets you install other tools in an ephemeral, writable layer that only exists during the debugging session.
By default image variants intended for runtime, run as the nonroot user. Ensure that necessary files and directories
are accessible to that user. You may need to copy files to different directories or change permissions so your
application running as the nonroot user can access them.
To view the user for an image variant, select the Tags tab for this repository.
Non-dev hardened images run as a nonroot user by default. As a result, applications in these images can't bind to
privileged ports (below 1024) when running in Kubernetes or in Docker Engine versions older than 20.10. To avoid issues,
configure your application to listen on port 1025 or higher inside the container, even if you map it to a lower port on
the host. For example, docker run -p 80:8080 my-image will work because the port inside the container is 8080, and
docker run -p 80:81 my-image won't work because the port inside the container is 81.
Note: The Istio CNI DaemonSet runs with
privileged: trueandhostNetwork: true, which overrides nonroot port restrictions. This note applies primarily if you customize the security context.
By default, image variants intended for runtime don't contain a shell. Use dev images in build stages to run shell
commands and then copy any necessary artifacts into the runtime stage. In addition, use Docker Debug to debug containers
with no shell.
To see if a shell is available in an image variant and which one, select the Tags tab for this repository.
The DHI defines the CNI installer binary as an ENTRYPOINT (/usr/local/bin/install-cni), while the official Istio
image defines it as a CMD. If your deployment spec uses command to override the container command, you may need to
switch to using args instead.
To view the Entrypoint or CMD defined for an image variant, select the Tags tab for this repository, select a tag, and then select the Specifications tab.