This project demonstrates how to deploy a Go-based Book API to Kubernetes using the client-go library (no YAML).
Make sure you’ve already built and pushed your Docker image to Docker Hub:
docker build -t puloksaha/bookapi:latest .
docker push puloksaha/bookapi:latestDeploy your API programmatically using:
go run main.goThis creates a Kubernetes Deployment with your Docker image and exposes port 9090.
Forward the container port to your local machine:
kubectl port-forward deployment/bookapi-deployment 9090:9090Now your API is available at:
http://localhost:9090