Helm must be installed to install to use helm-charts.
To install, run
helm repo add my-webapp https://prabhjotbawa.github.io/helm-charts
helm install my-webapp my-webapp/webapp --namespace webapp --create-namespace
To upgrade, run
helm upgrade my-webapp --reuse-values --namespace webapp
To uninstall, run
helm uninstall my-webapp --namespace webapp
TO check install/upgrade history, run
helm history my-webapp --namespace webapp
helm install my-webapp my-webapp/webapp --namespace webapp --create-namespace --set certManager.enabled=true --set ingress.enabled=true
helm install my-webapp my-webapp/webapp --namespace webapp --create-namespace --set serviceMonitor.enabled=true
Please note: Prometheus must be installed for the above functionality to work. It can be installed following the below steps:
helm install prometheus prometheus-community/kube-prometheus-stack -n prometheus
If using minikube, the service can be exposed running:
minikube -p multinode-demo service prometheus-kube-prometheus-prometheus -n prometheus --url
Grafana can also be exposed via:
minikube -p multinode-demo service prometheus-grafana -n prometheus --url
multinode-demo is the minikube cluster in this case so please ensure to replace it with your cluster.
I added a sample custom metrics called data_inserted which returns the number of rows available in the database.