From 4c8f76068f0527fe023dd12a46b43993a36e3d85 Mon Sep 17 00:00:00 2001 From: Hedingber Date: Sun, 1 Nov 2020 21:39:03 +0200 Subject: [PATCH] [Nuclio] Specify nodeport service type explicitly (#508) --- mlrun/runtimes/function.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mlrun/runtimes/function.py b/mlrun/runtimes/function.py index 63e0925222c..cc093d9bd71 100644 --- a/mlrun/runtimes/function.py +++ b/mlrun/runtimes/function.py @@ -264,6 +264,9 @@ def get_fullname(config, name, project, tag): spec.cmd = self.spec.build.commands or [] project = project or self.metadata.project or "default" handler = self.spec.function_handler + + # In Nuclio 1.6.0 default serviceType changed to "ClusterIP", make sure we're using NodePort + spec.set_config("spec.serviceType", "NodePort") if self.spec.readiness_timeout: spec.set_config("spec.readinessTimeoutSeconds", self.spec.readiness_timeout) if self.spec.resources: