I have a config service running on GKE using Git backend. I want to make it can serve even when Git is down. Currently it already can serve when Git is down because it checks out everything into its local filesystem and use those to serve. But if during that time the config service itself restarts, it cannot perform the initial clone.
I tried using a persistence disk which the data is still there when config service restarts, but the thing is, the first thing of Git clone is to clear the working directory no matter whether clone is successful. Which makes “persistence” meaningless.
Any thought on how to fix this?