The following application illustrate simple kubernetes cluster. It contains few modules, which is spring boot web application, mongo database server, mongo express client, k8s secret with database configuration, config map and ingress component.
The configuration and statistics can be done with using kubernetes dashboard. Project describe how to access dashboard UI.
minikube start
Applying all k8s config files:
kubectl apply -f db-secret.yaml
kubectl apply -f db-config.yaml
kubectl apply -f mongo.yaml
kubectl apply -f mongo-express.yaml
kubectl apply -f webapp.yaml
kubectl apply -f ingress.yaml
minikube ip
http://<cluster_ip>:30100/
minikube ip
http://<cluster_ip>:30200/
kubectl get pod
kubectl logs <pod_name>
kubectl describe pod <pod_name>
cd dashboard
kubectl apply -f admin-user.yaml
kubectl apply -f cluster-role.yaml
kubectl -n kubernetes-dashboard create token admin-user