Skip to content

Check if container images in a Kubernetes cluster have arm architecture support.

License

Notifications You must be signed in to change notification settings

ArmDeveloperEcosystem/kubearchinspect

KubeArchInspect

License Main CI/CD

Overview

Migrating your websites and services to run on Arm infrastructure can bring benefits in cost savings and performance improvements. The first phase in migrating to Arm is to determine whether the container images in the Kubernetes cluster have support for the Arm architecture. It can be a manual and time consuming task to check compatibility. To make it easier we have developed the kubearchinspect tool which automates this process.

The tool runs on a local client against the cluster to check the metadata of your images for Arm architecture support. If the current version of the image lacks support, it will also check newer versions for compatibility so that you can easily upgrade.

This is Open Source Software and we appreciate contributions and feedback, please see the Contribution Guidelines for more information.

Installation

Pre-built binaries are available from the releases page, alternatively see the Development Guide for building locally.

Running

Prerequsites

  • kubectl - kubearchinspect must be executed on a client with kubectl installed and configured to connect to the target Kubernetes cluster. If multiple clusters are configured, it will query the cluster in the current default context.
  • docker client - The Docker credential store is used to authenticate to private registries, use docker login to add credentials.

Usage

kubearchinspect [OPTIONS]

Options

  • images : Check which images in your cluster support arm64
  • completion : Generate the autocompletion script for the specified shell
  • help : Help about any command

Example

Output from a small cluster in EKS:

% kubearchinspect images

Legend:
-------
✅ - arm64 supported
🆙 - arm64 supported (with update)
❌ - arm64 not supported
🚫 - error occurred
------------------------------------------------------------------------------------------------

🚫 602401143452.dkr.ecr.eu-west-1.amazonaws.com/eks/csi-snapshotter:v6.3.2-eks-1-28-11  Authentication Error. The private image could not be queried, check the docker credentials are present and correct.
🚫 602401143452.dkr.ecr.eu-west-1.amazonaws.com/eks/kube-proxy:v1.25.16-minimal-eksbuild.1  Authentication Error. The private image could not be queried, check the docker credentials are present and correct.
🚫 602401143452.dkr.ecr.eu-west-1.amazonaws.com/eks/livenessprobe:v2.11.0-eks-1-28-11  Authentication Error. The private image could not be queried, check the docker credentials are present and correct.
✅ amazon/aws-for-fluent-bit:2.10.0
✅ amazon/cloudwatch-agent:1.247350.0b251780
✅ busybox:1.31.1
✅ curlimages/curl:7.85.0
✅ docker.io/alpine:3.13
✅ docker.io/bitnami/external-dns:0.14.0-debian-11-r2
🆙 docker.io/bitnami/metrics-server:0.6.2-debian-11-r20
🚫 secret.repo.arm.com/jcaap:3.7  Image not found. Some pods like `jcap-replica-pod-2` are using an image that no longer exists.
✅ mirrors--internal.aws.arm.com/grafana/grafana:9.3.8
✅ mirrors--internal.aws.arm.com/banzaicloud/vault-secrets-webhook:1.18.0
🆙 quay.io/argoproj/argocd:v2.0.5
✅ quay.io/kiwigrid/k8s-sidecar:1.22.0
✅ quay.io/prometheus-operator/prometheus-config-reloader:v0.63.0
✅ quay.io/prometheus-operator/prometheus-operator:v0.63.0
✅ quay.io/prometheus/alertmanager:v0.25.0
✅ quay.io/prometheus/blackbox-exporter:v0.24.0
✅ quay.io/prometheus/node-exporter:v1.5.0
✅ quay.io/prometheus/prometheus:v2.42.0
✅ redis:6.2.4-alpine
✅ registry.k8s.io/autoscaling/cluster-autoscaler:v1.25.3
✅ registry.k8s.io/kube-state-metrics/kube-state-metrics:v2.8.1

Errors in Output

If there is an error whilst checking an image, the tool will display the 🚫 symbol and give a short description of the error at the end of the line. The current common errors are:

  • Authentication Error. The private image could not be queried, check the docker credentials are present and correct.
  • Communication error. Unable to communication with the registry, please ensure the registry host is available.
  • Image not found. One or more pods are using an image that no longer exists.
  • Unknown error, run in debug mode using the flag -d for more info

Private Registry Authentication

If kubearchinspect discovers an image from a registry that requires authentication, it uses the docker credential store located at ~/.docker/config.json to obtain the required credentials.

Releases

For release notes and a history of changes of all releases, please see the following:

Project Structure

The follow described the major aspects of the project structure:

  • cmd/ - Application command logic.
  • internal/ - Go project source files.
  • changes/ - Collection of news files for unreleased changes.

Getting Help

  • For a list of known issues and possible workarounds, please see Known Issues.
  • To raise a defect or enhancement please use GitHub Issues.

Contributing

About

Check if container images in a Kubernetes cluster have arm architecture support.

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

No packages published

Languages