Ejemplo n.º 1
0
    def get_serving_deployer(self, model_class, service_type='ClusterIP',  # pylint:disable=arguments-differ
                             pod_spec_mutators=None):
        """Creates a deployer to be used with a serving job for IBM Cloud

        :param model_class: the name of the class that holds the predict function.
        :param service_type: service type (Default value = 'ClusterIP')
        :param pod_spec_mutators: list of functions that is used to mutate the podsspec.
            (Default value = None)

        """
        return Serving(model_class, namespace=self._namespace, service_type=service_type,
                       pod_spec_mutators=pod_spec_mutators)
Ejemplo n.º 2
0
    def get_serving_deployer(self, model_class, service_type='ClusterIP',  # pylint:disable=arguments-differ
                             pod_spec_mutators=None, annotations=None):
        """Creates a deployer to be used with a serving job for the Kubernetes

        :param model_class: the name of the class that holds the predict function.
        :param service_type: service type (Default value = 'ClusterIP')
        :param pod_spec_mutators: list of functions that is used to mutate the podsspec.
            (Default value = None)

        """
        print("Annotations in serving deployer", annotations)  # anupash debug
        return Serving(model_class, namespace=self._namespace, service_type=service_type,
                       pod_spec_mutators=pod_spec_mutators, annotations=annotations)