This repo contains the init container that reroutes all traffic to the pod through Linkerd2's sidecar proxy. This rerouting is done via iptables and requires the NET_ADMIN capability.
Integration tests
The instructions below assume that you are using minikube.
Start by building and tagging the proxy-init
image required for the test:
eval $(minikube docker-env)
make image
Then run the tests with:
make integration-test
Build Multi-Architecture Docker Images with Buildx
Please refer to Docker Docs to enable Buildx.
Run make images
to start build the images.
Run make push
to push the images into registry.
Registry repo can be configured with environment variable:
DOCKER_REGISTRY=<your registry> make push
In some local environments like Ubuntu, where the default Buildx builder uses the docker
driver, the make images
command might fail with the following error:
$ make images
multiple platforms feature is currently not supported for docker driver. Please switch to a different driver (eg. "docker buildx create --use")
Makefile:57: recipe for target 'images' failed
make: *** [images] Error 1
To fix this, you can create a new Buildx builder instance by running make builder
. This command will create a builder that uses the docker-container
driver that can build multi-platform images. For more information, see the Buildx builder documentation.