Lokasi ngalangkungan proxy:   [ UP ]  
[Ngawartoskeun bug]   [Panyetelan cookie]                
Skip to content

FINERACT-2421: Fix kubernetes minikube example configuration - #5238

Merged
adamsaghy merged 8 commits into
apache:developfrom
lugosidomotor:fix/kubernetes-minikube-improvements
Dec 18, 2025
Merged

adamsaghy merged 8 commits into
apache:developfrom
lugosidomotor:fix/kubernetes-minikube-improvements

Conversation

@lugosidomotor

Copy link
Copy Markdown
Contributor

Description

This PR improves the Kubernetes deployment configuration for better compatibility with Minikube and local development environments.

Changes made:

Kubernetes deployment improvements:

  • Added nginx reverse proxy configuration to mifos-community deployment to forward /fineract-provider API requests to the fineract-server backend, eliminating the need for separate ingress configuration
  • Switched from openmf/community-app to openmf/web-app:master image for better configurability via ConfigMap
  • Added environment.json ConfigMap for configuring the web-app frontend API URLs
  • Fixed liveness/readiness probe settings:
    • Reduced initialDelaySeconds (180s → 90s/60s for fineract-server, 90s → 10s/5s for mifos-community)
    • Increased periodSeconds (1s → 10s) to reduce unnecessary load
    • Added failureThreshold: 3 for better reliability
  • Increased memory limits for fineract-server (1Gi → 2Gi) to accommodate JVM heap + metaspace
  • Added explicit -XX:MaxMetaspaceSize=256m JVM option

Script improvements:

  • Modernized kubectl-startup.sh to use kubectl wait instead of polling loops
  • Added --ignore-not-found=true to kubectl-shutdown.sh for idempotent cleanup
  • Added helpful output messages with access instructions and default credentials

Documentation:

  • Updated README.md Minikube section with clearer instructions
  • Added minikube service mifos-community command for accessing the web UI
  • Documented default credentials (mifos / password)
  • Added log checking commands for both deployments

Why:

The previous Kubernetes configuration had issues running on Minikube with Docker driver on macOS. The web-app frontend couldn't reach the fineract-server backend due to network isolation. The nginx reverse proxy solution allows both frontend and API to be served from the same endpoint.

Checklist

  • Write the commit message as per our guidelines
  • Acknowledge that we will not review PRs that are not passing the build ("green") - it is your responsibility to get a proposed PR to pass the build, not primarily the project's maintainers.
  • Create/update unit or integration tests for verifying the changes made.
    • Note: These are infrastructure/deployment changes only, no application code changes. Tested manually on Minikube.
  • Follow our coding conventions.
  • Add required Swagger annotation and update API documentation at fineract-provider/src/main/resources/static/legacy-docs/apiLive.htm with details of any API changes
    • N/A - No API changes, only Kubernetes deployment configuration.
  • This PR must not be a "code dump". Large changes can be made in a branch, with assistance. Ask for help on the developer mailing list.

Added instructions for accessing Mifos web application and Fineract API.
Added ConfigMap for web app configuration and Nginx settings. Updated container image and adjusted liveness/readiness probe settings.
Updated kubectl startup script to handle existing secrets and removed unnecessary pod status checks.
@Aman-Mittal

Copy link
Copy Markdown
Member

@lugosidomotor please link the relevant jira ticket in this.

@lugosidomotor

Copy link
Copy Markdown
Contributor Author

@Aman-Mittal I don’t have a Jira ticket for this. I just wanted to get the Minikube setup running, but it wasn’t working, so I fixed it

@adamsaghy

Copy link
Copy Markdown
Contributor

Please squash your commits and use in the PR and commit message:
FINERACT-2421: Fix kubernetes minikube example configuration

@lugosidomotor lugosidomotor changed the title Fix/kubernetes minikube improvements FINERACT-2421: Fix kubernetes minikube example configuration Dec 18, 2025
@lugosidomotor

Copy link
Copy Markdown
Contributor Author

Thank you! I renamed the PR, squashing is anyway easier to do during the merge, so I’ll leave that up to you

@adamsaghy

Copy link
Copy Markdown
Contributor

@lugosidomotor Dont make a habit of it! We are asking you to have 1 commit per PR (unless multiple authors involved)!

@adamsaghy
adamsaghy merged commit f94c0e7 into apache:develop Dec 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants