From 96cc12d6ee867dc5533ee78d2445088572a9ffb2 Mon Sep 17 00:00:00 2001 From: Chris Schaefer Date: Tue, 25 Feb 2020 10:20:04 -0500 Subject: [PATCH] Demonstrate "createNodePort" with an example Resolves https://github.com/spring-io/dataflow.spring.io/issues/200 --- .../1-installation/3-kubernetes/2-helm.md | 31 +++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/content/documentation/pages/1-installation/3-kubernetes/2-helm.md b/content/documentation/pages/1-installation/3-kubernetes/2-helm.md index aeb32d396..78b1690a3 100644 --- a/content/documentation/pages/1-installation/3-kubernetes/2-helm.md +++ b/content/documentation/pages/1-installation/3-kubernetes/2-helm.md @@ -813,6 +813,37 @@ shows: deployer..kubernetes.deploymentLabels=myLabelName:myLabelValue,myLabelName2:myLabelValue2 ``` +### NodePort + +Applications are deployed using a `Service` type of [ClusterIP](https://kubernetes.io/docs/concepts/services-networking/service/#publishing-services-service-types) which is the default Kubernetes `Service` type if not defined otherwise. +`ClusterIP` services are only reachable from within the cluster itself. + +To expose the deployed application to be available externally, one option is to use `NodePort`. +See the [NodePort](https://kubernetes.io/docs/concepts/services-networking/service/#nodeport) documentation for more information. + +The following example shows how you can individually configure applications using Kubernetes assigned ports: + +```properties +deployer..kubernetes.createNodePort=true +``` + +Replace `` with the name of your application. + +Additionally, you can define the port to use for the `NodePort` `Service` as shown below: + +```properties +deployer..kubernetes.createNodePort=31101 +``` + +Replace `` with the name of your application and the value of `31101` with your desired port. + + + +When defining the port manually, the port must not already be in use and within the defined `NodePort` range. +Per [NodePort](https://kubernetes.io/docs/concepts/services-networking/service/#nodeport) the default port range is 30000-32767. + + + ## Monitoring To learn more about the monitoring experience in Data Flow using Prometheus running on Kubernetes, please refer to the [Stream Monitoring](%currentPath%/feature-guides/streams/monitoring/#kubernetes) feature guide.