Simple kubenetes configuration for a server production mode
- Install kubectl: Follow this
- Install minikube: Keep follow this
Remember to start docker:
sudo service docker start
. On windows, simply start docker service in services.msc Start minikube:minikube start
- Run as follows:
- First build this 'server image':
./cmd.sh build
- Next, start our server:
./cmd.sh start
The server structure: Internet | [hello-kube-ingress] | [hello-kube-service] | [3 server replicas] 4. Stop the server infrastructure:
./cmd.sh stop
This won't stop the minikube service, we should then manually stop it if need.