Skip to content
This repository was archived by the owner on May 14, 2025. It is now read-only.

Commit 6d1fe94

Browse files
committed
Add note on changing LoadBalancer to NodePort when using Kubernetes on Docker Desktop
Resolves #3115
1 parent 996a660 commit 6d1fe94

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

spring-cloud-dataflow-docs/src/main/asciidoc/getting-started-kubernetes.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -334,6 +334,8 @@ environmentVariables: 'SPRING_CLOUD_STREAM_KAFKA_BINDER_BROKERS=${KAFKA_SERVICE_
334334

335335
Run the following commands to start Skipper as the companion server for Spring Cloud Data Flow:
336336

337+
NOTE: If using a platform such as Kubernetes on Docker Desktop which provides a local `LoadBalancer` implementation, edit `src/kubernetes/skipper/skipper-svc.yaml` replacing `LoadBalancer` with `NodePort` to avoid port conflicts.
338+
337339
====
338340
[source,bash]
339341
----

src/kubernetes/server/server-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ spec:
5050
value: 'http://${SCDF_SERVER_SERVICE_HOST}:${SCDF_SERVER_SERVICE_PORT}'
5151
# Provide the Skipper service location
5252
- name: SPRING_CLOUD_SKIPPER_CLIENT_SERVER_URI
53-
value: 'http://${SKIPPER_SERVICE_HOST}/api'
53+
value: 'http://${SKIPPER_SERVICE_HOST}:${SKIPPER_SERVICE_PORT}/api'
5454
# Add Maven repo for metadata artifact resolution for all stream apps
5555
- name: SPRING_APPLICATION_JSON
5656
value: "{ \"maven\": { \"local-repository\": null, \"remote-repositories\": { \"repo1\": { \"url\": \"https://repo.spring.io/libs-snapshot\"} } } }"

src/kubernetes/skipper/skipper-svc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ metadata:
55
labels:
66
app: skipper
77
spec:
8-
# If you are running k8s on a local dev box or using minikube, you can use type NodePort instead
8+
# If you are running k8s on a local dev box, using minikube, or Kubernetes on docker desktop you can use type NodePort instead
99
type: LoadBalancer
1010
ports:
1111
- port: 80

0 commit comments

Comments
 (0)