diff --git a/kubeflow/common/ambassador.libsonnet b/kubeflow/common/ambassador.libsonnet index 0d8cc1abe9b..f110647de32 100644 --- a/kubeflow/common/ambassador.libsonnet +++ b/kubeflow/common/ambassador.libsonnet @@ -20,6 +20,10 @@ name: "ambassador", port: 80, targetPort: 80, + [if (params.ambassadorServiceType == 'NodePort') && + (params.ambassadorNodePort >= 30000) && + (params.ambassadorNodePort <= 32767) + then 'nodePort']: params.ambassadorNodePort, }, ], selector: { diff --git a/kubeflow/common/prototypes/ambassador.jsonnet b/kubeflow/common/prototypes/ambassador.jsonnet index 0440bf81521..10b3ccc5182 100644 --- a/kubeflow/common/prototypes/ambassador.jsonnet +++ b/kubeflow/common/prototypes/ambassador.jsonnet @@ -4,7 +4,8 @@ // @shortDescription Ambassador // @param name string Name // @optionalParam platform string none supported platforms {none|gke|minikube} -// @optionalParam ambassadorServiceType string ClusterIP The service type for the API Gateway. +// @optionalParam ambassadorServiceType string ClusterIP The service type for the API Gateway {ClusterIP|NodePort|LoadBalancer}. +// @optionalParam ambassadorNodePort number 0 Optional nodePort to use when ambassadorServiceType is NodePort {30000-32767}. // @optionalParam ambassadorImage string quay.io/datawire/ambassador:0.37.0 The image for the API Gateway. // @optionalParam replicas number 3 The number of replicas.