Use generic resource allocation instead of hardcoded cpu, memory, ports.