def is_valid_master_type(context, linode_type):
    """
    Kubernetes masters must have a minimum of 2 VCPUs.
    """
    status, result = context.client.call_operation('linodes', 'type-view',
        args=[linode_type])
    if status != 200:
        raise RuntimeError(
            '{}: Failed to look up configured default Linode type from API'
            .format(str(status)))
    else:
        return result['vcpus'] >= 2
