This project is a simple Go API server that can be run locally, containerized with Docker, and deployed on Kubernetes.
To run the project locally:
go run main.go start -p 9090Build the Docker image:
docker build -t puloksaha/bookapi:latest .Run the Docker container exposing port 9090:
docker run -p 9090:9090 puloksaha/bookapi:latest start -p 9090Push your image to Docker Hub:
docker push puloksaha/bookapi:latestApply the Deployment manifest:
kubectl apply -f bookapi-deployment.yamlApply the Service manifest
kubectl apply -f bookapi-server.yamlForward the service port to your local machine:
kubectl port-forward svc/bookapi-service 9090:9090Now your API is accessible at http://localhost:9090.