EKS + linkerd + vcluster

Sharing a challenge I had and how I overcome.

I needed to put vcluster inside a aws eks cluster that had already linkerd installed on it.
The guest vcluster has linkerd also. As the nature of vcluster, the resources created inside the guest are actually created into the host; and the host linkerd was trying to inject itself into the guest linkerd, kinda inception. As linkerd was being injected twice into the guest, it wasn’t working properly.
To workaround this, I’ve added the matchExpressions below, saying that linkerd will be injected only if vcluster.loft.sh/name key DoesNotExist.

linkerd 1.24.10
vcluster 19.5

2 Likes