cedric-lamalle / jhipster-control-center-k8s-sample

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sample App for JHipster Control Center

Repository with samples to test JHipster Control Center Kubernetes Integration.

Quickstart

Install and start Minikube.

Create a RoleBinding for Kubernetes Service Discovery

kubectl create clusterrolebinding system-default-cluster-admin-binding --clusterrole=cluster-admin --user=system:serviceaccount:default:default

Yeah, Cluster Admin, this is just a test!

Run JHipster Control Center:

kubectl run jhipstercontrolcenter --image=cedriclamalle/jhipstercontrolcenter --port=7419 --env="SPRING_PROFILES_ACTIVE=prod"

Map port 7419:

kubectl port-forward pods/jhipstercontrolcenter 7419:7419

Now JHipster Control Center is running and available at http://localhost:7419. Next step is to run the sample app generated with JHipster 6.10.1.

For this example we'll use Skaffold.

⚠️ you'll need to edit src/main/resources/application.properties and change the dekorate.docker.group to your dockerhub login.

git clone https://github.com/cedric-lamalle/jhipster-control-center-k8s-sample
cd jhipster-control-center-k8s-sample/sample-app-1
skaffold dev

This will build the executable, the Docker image with jib and deploy the application in Minikube.

Screenshots

Instances List

Instances List

Instance Details

Instance Details

Application Metrics

Application Metrics

Health Checks

Health Checks

About


Languages

Language:Java 92.0%Language:HTML 7.6%Language:Shell 0.4%Language:JavaScript 0.1%