Running Flogo Flow State Manager on Kubernetes

    Procedure
  1. 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.
  2. Go to the root folder (packaging) and run:
    docker build -t flogostatemanager:1.0.0 -f ./deployments/Dockerfile .
  3. Push the Flogo Flow State Manager Docker image to the Docker registry.
  4. 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.
  5. 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.

  6. To undeploy the Flow State Manager service in k8s cluster:
    <flogo_flow_state_manager.tar>/deployments/k8s/undeploy.sh