-
Notifications
You must be signed in to change notification settings - Fork 46
Minikube setup
The AngularAndSpring Project has now a setup that makes it possible to run it on Kubernetes. It can be run on a Minikube on the local machine with a MongoDB and persistence. Minikube needs to be setup and started. Then you need to execute these commands in a shell in the minikube directory:
kubectl create -f ./kubMongoVolume.yaml
kubectl create -f ./kubMongoVolumeClaim.yaml
kubectl create -f ./kubMongo.yaml
kubectl create -f ./kubMongoService.yaml
kubectl create -f ./kubApp.yaml
kubectl create -f ./kubAppService.yaml
Then you have the setup of the Minikube.
To get the url these commands need to be executed:
kubectl get services
minikube ip
The result looks like this:
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
kubernetes ClusterIP 10.96.0.1 443/TCP 10d
mongodb ClusterIP 10.109.101.39 27017/TCP 10d
web-service NodePort 10.105.201.74 8080:31810/TCP 10d
192.168.99.100
Url is then: http://192.168.99.100:31810/
Then you can test AngularAndSpring.
The Docker Image can be found at: https://hub.docker.com/r/angular2guy/angularandspring/