Skip to content

PulokSaha0706/Client-Go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

📘 Book API Deployment with Kubernetes Client-Go

This project demonstrates how to deploy a Go-based Book API to Kubernetes using the client-go library (no YAML).


Getting Started

Clone & Build

Make sure you’ve already built and pushed your Docker image to Docker Hub:

docker build -t puloksaha/bookapi:latest .
docker push puloksaha/bookapi:latest

Run the Deployment with client-go

Deploy your API programmatically using:

go run main.go

This creates a Kubernetes Deployment with your Docker image and exposes port 9090.

Port Forward to Access the API

Forward the container port to your local machine:

kubectl port-forward deployment/bookapi-deployment 9090:9090

Now your API is available at:

http://localhost:9090

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages