Running Flogo Flow State Manager on Kubernetes
- Procedure
- Update
<flogo_flow_state_manager.tar>\config\postgres\config.json
as per your Postgres installation.Important: Postgres is not accessible over 'localhost
' when Flogo Flow State Manager is running on Docker. You must use the machine's IP address. - Go to the root folder (packaging) and run:
docker build -t flogostatemanager:1.0.0 -f ./deployments/Dockerfile .
- Push the Flogo Flow State Manager Docker image to the Docker registry.
- Update the
<flogo_flow_state_manager.tar>/deployments/k8s/deployment.yml
as per the required configuration. For example, image name, version, port values, and so on. - Deploy the Flogo Flow State Manager service in the Kubernetes cluster:
<flogo_flow_state_manager.tar>/deployments/k8s/deploy.sh
This command creates the required configmap and applies the
deployment.yml
configuration to define the deployment and service component for Kubernetes. - To undeploy the Flow State Manager service in k8s cluster:
<flogo_flow_state_manager.tar>/deployments/k8s/undeploy.sh