Dive into Spring Cloud Data Flow on Kubernetes with Minikube for Mac OS

So you want to run Spring Cloud Data Flow on Kubernetes.¬†Let’s start. First you must install Kubernetes and Helm. As a Kubernetes distribution, I used minikube and installed it using homebrew

brew install minikube helm

For Spring Cloud Data Flow, I use the Bitnami helm charts here. To deploy Spring Cloud Data Flow, you need to execute the following two commands, which will install a rabbitmq pod, a MariaDB pod, Spring Cloud Data Flow Server and Skipper and the corresponding services for the pods. You may want to start minikube with more CPUs and Memory as we are deploying quite a few artefacts, so the start command gets some more parameters:

minikube start –cpus=4 –memory=8192
helm repo add bitnami https://charts.bitnami.com/bitnami
helm install scdf bitnami/spring-cloud-dataflow

You can get data flow dashboard with the following command:

export SERVICE_PORT=$(kubectl get –namespace default -o jsonpath=”{.spec.ports[0].port}” services scdf-spring-cloud-dataflow-server)
kubectl port-forward –namespace default svc/scdf-spring-cloud-dataflow-server ${SERVICE_PORT}:${SERVICE_PORT} &
open “${SERVICE_PORT}/dashboard”

That’s it.