A simple Java web application which communicates with MongoDB. Useful for testing Eclipse Che Java workspace.
The application connects to the Mongo data base, so it should be configured with next parameters:
- MongoDB user - user
- MongoDB password - password
- The name of data base - guestbook
- Before you begin you need to have a Kubernetes cluster, and the
kubectlcommand-line tool must be configured to communicate with your cluster. If you do not already have a cluster, you can create one by usingMinikubeorMinishift. To deploy the application usekubectl apply -f ./kubernetes-manifests/<deployment_file>command.
- Create and start a workspace from Java MongoDB Web Application stack with OpenShift Connector plug-in
- Open a terminal from
vscode-openshift-connectorcontainer - Login into your Kubernetes cluster via
oc login https://<IP>:<PORT> --certificate-authority=/var/run/secrets/kubernetes.io/serviceaccount/ca.crtcommand - Create a new project in Openshift application explorer
- Create new application in your project in Openshift application explorer
- Open
kubernetes-manifests/mongo.deployment.yamland deploy it viaKubernetes: Createcommand - Create a new Openshift component and deploy backend module.
- Create a new Openshift component and deploy frontend module.