Start
$ minikube start
Stop
$ minikube stop
Go to dashboard
$ minikube dashboard
Url of a service
minikube service --url <servicename>
Put URL of a service into a variable
$ export NODE_PORT=$(kubectl get --namespace <service> -o jsonpath="{.spec.ports[0].nodePort}" services wordpress-wordpress) ✓ 10374 10:15:42 $ export NODE_IP=$(kubectl get nodes --namespace <service>> -o jsonpath="{.items[0].status.addresses[0].address}") echo http://$NODE_IP:$NODE_PORT
Note
|
Don’t forget to remove SNAPSHOT from the release
|
Perform a build and prepare for Kubernetes
mvn package fabric8:build
Generate the Kubernetes resource
mvn fabric8:resource
Generated in classes/META-INF/fabric8
mvn fabric8:apply