Kubernetes is a powerful platform for managing containerized applications, and Minikube provides an easy way to run Kubernetes locally. In this article, we'll walk through the installation of Minikube and `kubectl` on Ubuntu using Docker as the driver. We’ll also demonstrate how to deploy a custom HTTPD application with your own index file. Prerequisites Before diving in, make sure you have: - A system running Ubuntu. - A stable internet connection. - Administrative access to install packages. Step 1: Install Docker Minikube requires a hypervisor to run Kubernetes clusters, and Docker is a popular choice. Here’s how to install Docker on Ubuntu. 1. Update the package index: sudo apt update 2. Install prerequisites: sudo apt install -y apt-transport-https ca-certificates curl software-properties-common 3. Add Docker’s official GPG key: curl -fsSL https://download.docker.com/ linux/ubuntu/gpg | sudo apt-key add - 4.Add Docker’s stable repository: sudo add-apt-repository &
In this article, we’ll guide you through deploying a custom HTTPD (Apache) Docker image containing your own web content using a Jenkins Freestyle project. This setup allows for easy automation and deployment every time you update your web content in a GitHub repository. Prerequisites Before we begin, ensure you have: - A GitHub account and a repository for your web content. - Jenkins installed and running. - Docker installed on your Jenkins server. - Basic knowledge of Docker and Jenkins. Step 1: Prepare Your Web Content 1. Create Your Web Content: - On your local machine, create a directory for your web content. - Inside this directory, create an `index.html` file or any additional files you want to serve. <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>My Custom Web Page</title&g