dwmkerr / terraform-aws-openshift

Create infrastructure with Terraform and AWS, install OpenShift. Party!
http://www.dwmkerr.com/get-up-and-running-with-openshift-on-aws
MIT License
170 stars 174 forks source link

Make default instance size smaller to reduce costs #36

Open dwmkerr opened 6 years ago

dwmkerr commented 6 years ago

The default instance sizing is production grade, but expensive for those who just want to try out OpenShift. Suggest making the default size smaller, with clear instructions on how to make it larger for prod

shierro commented 6 years ago

Hi @dwmkerr did you have some plan regarding this?

I needed to fork the https://github.com/openshift/openshift-ansible repo

reduce the memory check https://github.com/shierro/openshift-ansible/blob/release-3.9/roles/openshift_health_checker/openshift_checks/memory_availability.py#L16

before make openshift works on a t2.medium instance..

Can you suggest ways on how I to scale the t2.medium on prod without loosing data?

I'm sort of new to terraform so I'll appreciate some patience :D

dwmkerr commented 6 years ago

Ah doing it without losing data will be a challenge, you'll need to check the docs on backup/restore I'm afraid! The other option would be to create new nodes on smaller instances, join them to the cluster, then move the old large nodes off the cluster and retire them