Understanding Kubernetes:
Kubernetes, often abbreviated as K8s, is an open-source container orchestration platform that automates the deployment, scaling, and management of containerized applications.
It abstracts the underlying infrastructure and provides a unified API to manage clusters of containers effectively. With Kubernetes, developers can focus on building applications without worrying about the complexities of deployment and scaling.
Use name as you preferd i used Netflix-server
Type is (AMI- Ubuntu 22.04, Type- t2.medium)
Install updates. (sudo apt-get update)
Install Docker. Docker installation doumentaion
Give permission to Docker (sudo usermod -aG docker $USER && newgrp docker)
Minikube and Kubectl installation Install Docker. Minikube installation doumentaion
sudo docker --version
sudo minikube version
sudo Kubectl version
git clone https://github.com/NirmalNaveen20/netflix-k8.git
sudo docker build -t nteflix-app .
sudo docker login
Provide your docker hub credentials
Push image to the docker hub
sudo docker push <your docker hub username/netflix-app>
sudo kubectl apply -f deployment.yml
sudo kubectl apply -f service.yml
sudo minikube service netflix-app --url
check accessibility
curl -L <minikube-address>
Check with Public URL and we can now see the Netflix APP running on the server.