I am trying to run a Factorio game server on Kubernetes (hosted on GKE).
I have setup a Stateful Set with a Persistent Volume Claim and mounted it in the game server's save directory.
I would like to upload a save file from my local computer to this Persistent Volume Claim so I can access the save on the game server.
What would be the best way to upload a file to this Persistent Volume Claim?
I have thought of 2 ways but I'm not sure which is best or if either are a good idea:
- Restore a disk snapshot with the files I want to the GCP disk which backs this Persistent Volume Claim
- Mount the Persistent Volume Claim on an FTP container, FTP the files up, and then mount it on the game container