Posts

Showing posts from January, 2024

Deploying a Simple Web Application with Helm

 Kubernetes package management with Helm is a powerful way to manage Kubernetes applications. Helm helps you define, install, and upgrade even the most complex Kubernetes applications using Helm charts. Here’s a comprehensive example to illustrate how you can use Helm for package management. Example: Deploying a Simple Web Application with Helm 1. Install Helm Before you begin, ensure you have Helm installed. You can install Helm using the following command: curl https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash Verify the installation: helm version 2. Create a Helm Chart To create a new Helm chart for your application, use the following command: helm create my-web-app This command creates a new directory named my-web-app with a basic Helm chart structure: my-web-app/ ├── .helmignore ├── Chart.yaml ├── values.yaml ├── charts/ ├── templates/ │ ├── deployment.yaml │ ├── service.yaml │ ├── ingress.yaml │ └── _helpers.tpl └── templates/tests/ 3. Custom...

Docker concepts and commands

Here’s a comprehensive guide to Docker concepts and commands, complete with explanations to help you understand each one. 1. Basic Docker Commands 1.1. Check Docker Version docker --version Explanation: This command displays the installed Docker version. It's useful for verifying that Docker is installed and checking its version. 1.2. List Running Containers docker ps Explanation: Lists all currently running containers. By default, it shows the container ID, image, command, creation time, status, ports, and names. 1.3. List All Containers (including stopped ones) docker ps -a Explanation: Lists all containers, both running and stopped. This helps in managing and inspecting containers that are not currently active. 1.4. Pull an Image from Docker Hub docker pull nginx Explanation: Downloads the nginx image from Docker Hub (the default image repository). If the image is already on your local machine, Docker will pull the latest version. 1.5. Run a Container docker run -d -p 80:80...

About Prometheus

Image
 GitHub Link : https://github.com/Naveenjayachandran/Kubernetes_Prometheus What is Prometheus? Prometheus is an open-source systems monitoring and alerting toolkit originally built at SoundCloud . Since its inception in 2012, many companies and organizations have adopted Prometheus, and the project has a very active developer and user community . It is now a standalone open source project and maintained independently of any company. To emphasize this, and to clarify the project's governance structure, Prometheus joined the Cloud Native Computing Foundation in 2016 as the second hosted project, after Kubernetes . Prometheus collects and stores its metrics as time series data, i.e. metrics information is stored with the timestamp at which it was recorded, alongside optional key-value pairs called labels. For more elaborate overviews of Prometheus, see the resources linked from the media section. Features Prometheus's main features are: a multi-dimensional data ...