Resolve ignition.json being too large for digitalocean (over 64kb) #27
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
VPS providers, like digitalocean have a relatively small limit on the size that the ignition.json file can be (loaded in main.tf "user_data" key). Instead load a minimal ignition.json that just includes a link to the full ignition.json file hosted on nassella.
Question, how to handle this for locally hosted Nassella, as it does not have a server running and would need some sort of reverse-proxy to serve a file. Maybe upload it to a backblaze bucket first? ngrok?
The control plane server would need do something like create a hashmap of instances and corresponding igntion.json's along with the instance ID. Then only serve the ignition.json if a request contains matching authorization and instance ID headers. After serving it, the key and corresponding config should be deleted from the hashmap.
Alternatively: can we just gzip the main ignition.json file and have a skeleton ignition.json use config.replace to load the compressed file? --update, that won't work as we can only load one file
another idea: just compress and b64 encode the app tree and use a oneshot systemd service to extract it
Possible example of how to do this:
Move ignition.json to be loaded externally via HTTPSto Resolve ignition.json being too large for digitalocean (over 64kb)seems like just compressing the /app tree will fix this and should make it so we can add many more apps without it becoming a problem