Moved to https://docs.akash.network/providers/akash-provider-troubleshooting/close-leases-based-on-image on 19th April 2023.
Below is the suboptimal way of terminating the leases with the selected (unwanted) images (until Akash natively supports that).
Suboptimal because once the deployment gets closed the provider will have to be restarted to recover from the account sequence mismatch
error. Providers already do it automatically through the K8s's liveness
probe set to the akash-provider deployment.
The other core problem is that the image
is unknown until the client transfers the SDL to the provider (tx send-manifest
) which can only happen after provider bids, client accepts the bid.