From experience, anything with 2GB or more RAM can be a master node. Workers can even have 1GB and work just fine.
Be warned, though, in my experience etcd requires a somewhat decent read/write latency, or else it's going to fail, and when etcd fails everything fails. Your changes don't apply, etc.