- Install docker
- Install minikube >=1.25.2
- Increase resources of your docker to a memory of atleast 8GB. (Mac / Windows)
Note: You can also run minikube without using docker. Look here.
minikube start --driver=docker --memory 7000 --cpus=4
you should see
π minikube v1.25.2 on Darwin 10.15.7
β¨ Using the docker driver based on user configuration
π Starting control plane node minikube in cluster minikube
π Pulling base image ...
π₯ Creating docker container (CPUs=4, Memory=7000MB) ...\
Ingress would act as a controller to route between various applicaitons
minikube addons enable ingress
MacOS / Linux
sudo vi /etc/hosts
# bahmni kubernetes nginx-ingress
127.0.0.1 bahmni.k8s
# bahmni-odoo kubernetes nginx-ingress
127.0.0.1 erp-bahmni.k8s
Windows
Press the Windows key.
Type Notepad in the search field.
In the search results, right-click Notepad and select Run as administrator.
From Notepad, open the following file:
c:\Windows\System32\Drivers\etc\hosts
Make the necessary changes to the file.
Select File > Save to save your changes.
minikube tunnel runs as a process, creating a network route on the host to the service CIDR of the cluster using the clusterβs IP address as a gateway. The tunnel command exposes the external IP directly to any program running on the host operating system.
sudo minikube tunnel --alsologtostderr -v=1
Note: Run this in a seperate terminal and keep it open
kubectl apply -R -f .
kubectl apply -R -f <directory_of_resource>/
Example:
kubectl apply -R -f openmrs/
kubectl apply -f bahmni-ingress.yaml
kubectl get all
kubectl delete -R -f .
Once the pods and servies are running you can access it from the browser on
- Bahmni EMR --> https://bahmni.k8s/bahmni/home
- OpenMRS --> https://bahmni.k8s/openmrs
- OpenELIS --> https://bahmni.k8s/openelis
- Odoo --> https://erp-bahmni.k8s/