After much printf debugging, it appears that a call to LeadershipService.BlockUntilLeadershipReleased is, um, blocking; and that is preventing the apiserver from shutting down.
After much printf debugging, it appears that a call to LeadershipServi ce.BlockUntilLe adershipRelease d is, um, blocking; and that is preventing the apiserver from shutting down.