i want to setup production environment, i have ubuntu server with 32Gb ram and 500Gb…
- User
i want to setup production environment, i have ubuntu server with 32Gb ram and 500Gb nvme. i want to use multipass and microk8s, and i need to setup gitlab with runner, postgresql, ci/cd, have staging and production, all this to host some of the websites that i have. how to do it properly? what architecture do you recommend? how to do this step by step
- Assistant
- User
i do not see here global description of architecture? do i need to create 3 virtual machines? database, staging, production? why postgres in kubernetes, not just in plain vm?
- Assistant
- User
is it better to create one vm for staging and one for production?
- Assistant
- User
what about networking? how to expose this virtual machines outside, for them to be able to proccess traffic from the internet? do i need some kine of haproxy on base server?
- Assistant
- User
i want to automatically cover ssl certificates renewing with traefik, where it is needed to be?
- Assistant
- User
is it possible to setup haproxy on base server (to route traffic), and use traefik on production and staging separately, to process my websites domains?
- Assistant
- User
are there some overhead with this config, i mean network?
- Assistant
- User
do you know some article, or resource with exactly this config setup, maybe some tutorials? do you know url?
- Assistant
- User
why is it so difficult, maybe there some ready setups?
- Assistant
- User
i mean total architecture? including multipass, vm, microk8s
- Assistant
- User
you meant vm2 is for haproxy? but how it is takes internet traffic from base server?
- Assistant
- User
does it make sense to have haproxy on separate vm, not on base server?
- Assistant
- User
when you say it is on vm2, do you mean also, that it is on microk8s node in cluster?
- Assistant
- User
okay. what about backup all the settings? how to do it properly
- Assistant
- User
what about disk? do i need to setup nfs? or it is better to isolate everything on each vm separately?
- Assistant