Skip to content

Commit

Permalink
[Nuclio] Specify nodeport service type explicitly (#508)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hedingber committed Nov 1, 2020
1 parent 90aa4b7 commit 4c8f760
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions mlrun/runtimes/function.py
Expand Up @@ -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:
Expand Down

0 comments on commit 4c8f760

Please sign in to comment.