Skip to content

refat75/api-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Book-Server Deployment and Services in Kubernetes Cluster using HELM

Install the Helm Chart

$ helm install my-app api-server-helm-chart

Check the installation

$ helm list -a

If everything is correct you will see the name my-app in the list.

Port Forwarding

$ kubectl port-forward svc/<your-service-name> 8080:<targetPort>

If everything works perfectly the application can be accessed at: http://localhost:8080/

Uninstall the Helm Chart

$ helm uninstall my-app

Book Server Description

API Endpoints

Method Route Type URL Description
GET Public / Hello Message From Server
POST Public /login For logging in. Necessary to provide credentials.
POST Public /logout For logging out.
GET Private /books Get all the listed books.
POST Private /books Create a new book. Necessary to provide book description.
GET Private /books/{id} Get a single book using book id.
PUT Private /books/{id} Update book using id.
Delete Private /books/{id} Delete a book using id.

Login Credentials

{
    "username": "admin",
    "password": "123456"
}

Tutorial Link

  1. Complete Helm Chart Tutorial: From Beginner to Expert Guide

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published