- Minikube
- Docker
- Node.js
- Create a ConfigMap and Secrets
- Create a Pod that uses the ConfigMap and Secrets
- Create simple API with Node.js and Express with PostgreSQL
eval $(minikube docker-env)docker build -t backend:0.1.0 .echo -n "ultrasecret" | base64cd /deployment
kubectl apply -f .
minikube service api-service --urlcurl http://<ip-minikube>:30001/api/v1/health
curl http://<ip-minikube>:30001/api/v1/users
curl -X POST http://<ip-minikube>:30001/api/v1/users -H "Content-Type: application/json" -d '{"name": "John", "email": "john@example.com"}'