4 ms·
Ask HN: How to get the flexibilty of containers without the need for another OS?
I’m just a little guy who has two saas products as a sideline which make 1/4 of my income. My stack is nginx/php/mysql/jquery on lxc containers on cloud servers.
I like my setup but wonder if I could reduce my container experience even further so I don't need another OS on my host. Has anyone got a smaller footprint than my setup but with the flexibilty of containers?
- verdverm 8y agoYou could use a GCP GKE cluster. Then you wouldn't have to worry about anything under Kubernetes and likely have a simple deployment and update process.
- quickthrower2 8y agoSimilarly you could use Azure Container Service too. Edit: Just found out they are canning that in 2020. So K8S is the default Azure solution.
- p0d 8y agoThanks. I wondered about kubernetes but thought it may be overkill for my situation. I will have a look.
- eb0la 8y agoI find k8s makes having replicas available very, very tempting. Don't fall into it (I try not to, btw). For me the good part is beign able to rollback a deployment... if you have a large base. Also, be careful with what's inside your containers. Even small distros like Alpine have security bugs. Make sure you can upgrade the container with your app on in at least every 2-3 months (less is better, btw).
- beatgammit 8y agoI don't follow. Lxc is a Linux thing, so you don't need more than one OS, just one Linux host. And if it really is just nginx + php + mysql, then you don't need containers at all and can just use a reverse proxy under nginx and have each app talk to a different database within MySQL. Deployment would just be copying over your code. I'm really not sure what you're trying to optimize away here.
- p0d 8y agoEach container needs managed i.e. packages updated and secured, just like the host. I was wondering if this could be reduced.
- actionowl 8y ago- Illumos/SmartOS has zones - FreeBSD has jails They’re both very well integrated into their respective operating systems.