kubernetes_Ajhhhhhhhghhbggggygghghhhghhh.pptx

1967DarshanGaragatti 22 views 11 slides Jun 11, 2024
Slide 1
Slide 1 of 11
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11

About This Presentation

On kubernets


Slide Content

Deploy ing applications with docker and kubernetes Sl.Number Student Name USN Roll Number Division 1 Sinchan Karogal 01FE21BCS078 109 A 2 Abhijna Kalbhag 01FE21BCS107 116 A 3 Hrishikesh T 01FE21BCS106 115 A Cloud Computing | 23ECSC305 Faculty : Prof. Sadaf Savanur

Index About docker About kubernetes Workflow Setup Deployment process ‹#›

About Docker Docker is a platform and set of tools that enables developers to build, deploy, and manage applications using containerization technology. Docker allow to package an application and its dependencies into a standardized unit called a container. Docker simplifies the process of creating and managing containers through features like Dockerfile, which is a text file containing instructions for building a Docker image, and Docker Compose, which is a tool for defining and running multi-container Docker applications. Docker also provides a centralized registry service called Docker Hub, where users can store and share Docker images. By using Docker, developers can isolate applications in lightweight containers, ensuring that they run consistently across various platforms and environments. ‹#›

About Kubernetes Kubernetes is an open-source container orchestration platform originally developed by Google. It automates the deployment, scaling, and management of containerized applications, allowing developers to focus on building and shipping their software rather than managing infrastructure. Kubernetes organizes containers into logical groupings called pods, which are the smallest deployable units in Kubernetes.These pods are then scheduled and managed across a cluster of nodes, which can be physical machines or virtual machines, providing scalability and high availability for applications. Kubernetes continuously monitors the state of applications running in the cluster and automatically restarts or reschedules containers that fail. Kubernetes uses a declarative approach to configuration, where users define the desired state of their applications using YAML or JSON manifests. Kubernetes then reconciles the current state with the desired state, making any necessary changes to ensure that the applications run as specified. ‹#›

Workflow ‹#›

Setup Download Docker from the official website and follow the installation prompts. Install kubectl, the Kubernetes command-line tool and add it to the system PATH. Download and install Minikube, a local Kubernetes cluster manager, suitable for development. Install Git by downloading the installer from the official Git website. Download Apache Maven from the official website and extract it to a directory. Set the environment variable and add Maven's bin directory to the system PATH. ‹#›

Deployment Process Start Minikube cluster to set up the Kubernetes environment using minikube start . Verify the status and information of the Kubernetes cluster by using the command kubectl cluster-info . Ensure Maven is installed on the system and the Maven home page is properly set up. we can check the Maven version using the command mvn --version . Fork the Java application project from the GitHub repository. Navigate to the repository directory and locate the microservices. Build the microservices using Maven with the command mvn clean install . ‹#›

Deployment Process After successful builds, navigate to each microservice directory. Build Docker images for each microservice using Dockerfile with the command docker build -t <image_name> . Log in to Docker account using the command docker login . Push the Docker images to Docker Hub repository using docker push <image_name>. ‹#›

Deployment Process Configure Kubernetes YAML Files. ‹#›

Deployment Process Apply the Kubernetes YAML files using the command kubectl apply -f <yaml_file> for each microservice to create Deployment and Service objects. Check the status and details of Deployments and Services created in the Kubernetes cluster using kubectl get deployment and kubectl get svc commands. ‹#›

Deployment Process ‹#›
Tags