Writing Go (MySQL) API from scratch, containerizing it and deploying it on Kubernetes | Part - 4

preview_player
Показать описание
This video is part of a series of videos where tried to write a very simple REST API in Go and MySQL as database that is going to get and post the books from/into the database. After that I actually containerized that API and deployed that on Kubernetes using resource Deployment, Service, PersistentVolumeClaim, PersistentVolume, ConfigMap, Secrets and others.

In this specific video we looked into how we can deploy the docker image that we have create on Kubernetes cluster using the Kubernetes resources Deployment, Service, ConfigMap, Secret etc.

I have also pushed the latest changes in the github repo.

Web:
Рекомендации по теме
Комментарии
Автор

awesome videos :)
Your diagram made your explanation much more clearer

sachinmaurya
Автор

I did not got why you did port forwarding. Can you explain in detail pls. Also what is different between expose and port forwarding?

deepakguptatech
Автор

I also made a nodejs api app and mongo db as backend. nodeapp and mongodb both are in different namespace, same as yours. nodejs app is able to connect to mongo db in another namespace, using fully qualified domain name using service. Now, the problem is, how to open node app, so that I can able to access it using browser.
I have tried using nodePort services, but its not working, when curl nodeport service from control plane, machine, host is unable to resolve, but when I create a busybox pod in same ns, and then try to curl the nodeport service, its worls fine.
Can you tell me the issue or something I am missing?

Amarjeet-fblk
Автор

Why u are using clusterIP service for restapi namespace pods, I mean cant we use nodeport servuce directly, rather than, exposing clusterIp to a nodeport service.

Amarjeet-fblk
join shbcf.ru