Posts

PLAYBOOK

install_docker.yml ================================ --- - name: Install Docker on RHEL hosts: localhost become: true tasks: - name: Install required system packages dnf: name: - dnf-plugins-core - ca-certificates - curl - gnupg state: present - name: Add Docker CE repository get_url: url: https://download.docker.com/linux/rhel/docker-ce.repo dest: /etc/yum.repos.d/docker-ce.repo mode: '0644' - name: Install Docker packages dnf: name: - docker-ce - docker-ce-cli - containerd.io - docker-buildx-plugin - docker-compose-plugin state: present - name: Enable and start Docker service service: name: docker state: started enabled: true - name: Add ec2-user to docker group user: name: ec2-user groups: docker append: true uninstall-do...

Install Jenkins Via Dcoker

Install and Run Apache Using Docker 🚀 Install and Run Apache Web Server Using Docker on RHEL Step 1️⃣ Install Docker Copy sudo yum install -y docker sudo systemctl start docker sudo systemctl enable docker sudo systemctl status docker Step 2️⃣ Pull Apache Image Copy docker pull ubuntu/apache2:2.4-20.04_beta Step 3️⃣ Create Container Copy docker create \ --name apache2 \ -p 80:80 \ ubuntu/apache2:2.4-20.04_beta Step 4️⃣ Start Container Copy docker start apache2 Code copied to clipboard ✅

Deploy Apache Web Server Using Docker: A Step-by-Step Guide

Install and Run Apache Using Docker 🚀 Install and Run Apache Web Server Using Docker This guide explains how to install Docker, pull an Apache image, create a container, start it, and verify that Apache is running successfully. 📌 Prerequisites Linux server (RHEL / Amazon Linux / Ubuntu) Docker installed and running Root or sudo access Step 1️⃣ Install Docker For RHEL / Amazon Linux sudo yum install -y docker sudo systemctl start docker sudo systemctl enable docker sudo systemctl status docker Verify Docker Installation docker --version docker info Step 2️⃣ Pull the Apache Docker Image docker pull ubuntu/apache2:2.4-20.04_beta Step 3️⃣ Create the Apache Container Create a container named apache2 and map port 80 from the container to the host. docker create \ --name apache2 \ -p 80:80 \ ubuntu/apache2:2.4-20.04_beta Verify Container Creation docker ps -a Step 4️⃣ Start the Container docker start apache2 Verify Running Contain...

Dcoker

1. install the docker 2. pull the docker image you want install 3. dcoker container create 4. docker start container Step 1️⃣ Pull the image ================================ docker pull ubuntu/apache2:2.4-20.04_beta [root@ip-172-31-29-89 playbooks]# docker pull ubuntu/apache2:2.4-20.04_beta 2.4-20.04_beta: Pulling from ubuntu/apache2 1902dbb941ac: Pull complete e5d0ee766c16: Pull complete c020a21380eb: Pull complete Digest: sha256:ff6ac8b3d5f91a1cdebdbb875eaf89b06270e8083644979067614b9ac9bebef3 Status: Downloaded newer image for ubuntu/apache2:2.4-20.04_beta docker.io/ubuntu/apache2:2.4-20.04_beta [root@ip-172-31-29-89 playbooks]# docker images i Info → U In Use IMAGE ID DISK USAGE CONTENT SIZE EXTRA ubuntu/apache2:2.4-20.04_beta ff6ac8b3d5f9 257MB 61.5MB [root@ip-172-31-29-89 playbo...

Access Modes in Azure Kubernetes Service (AKS)

Access Modes in Azure Kubernetes Service (AKS) AKS supports four types of access modes: ReadWriteOnce (RWO) ReadWriteMany (RWX) ReadOnlyMany (ROX) ReadWriteOncePod (RWOP) (Kubernetes 1.21 and later) 1. ReadWriteOnce (RWO) A volume with ReadWriteOnce access mode can be mounted as read-write by only one node at a time. Use Case: This is often used for storage directly attached to a single node, such as an Azure Managed Disk or AWS EBS volume , which can only be attached to a single VM (node) at a time. Example: Suppose you have a volume with ReadWriteOnce access mode and you attach it to node1 in an AKS cluster: Pod on Node 1: You can mount this volume in one or more pods running on node1 . These pods can read from and write to the volume as needed. Pod on Node 2: If a pod on node2 tries to mount the same volume, it won’t be able to, as it’s already in use on node1 . Use Case Example For instance, a logging application runni...

Step-by-Step AKS Training: A 60-Day Roadmap to Kubernetes Success

60-Day AKS Training Syllabus 60-Day AKS Training Syllabus Day Concept 1 Introduction to Kubernetes 2 Kubernetes (K8s) architecture 3 Deployments and replica sets in AKS 4 Introduction to services (ClusterIP, NodePort) 5 LoadBalancer service in AKS 6 Configuring YAML for deployments and services 7 Practice: Deploy and expose a simple web app on AKS 8 Containers and Docker basics 9 Using ACR with AKS 10 Namespaces in AKS 11 Labels and selectors in AKS 12 Introduction to PV and PVC 13 Azure Files in AKS 14 Practice: Deploy an app using PVC from Azure Files 15 Deploying an AKS cluster with CLI 16 Scaling and autoscaling in AKS 17 AKS network basics and Azure VNET 18 Network policies in AKS 19 Ingress basics (NGINX Ingress Controller) ...

How to Create a PVC from Azure Files for Use in AKS

  Creating a Persistent Volume Claim (PVC) from Azure Files for Azure Kubernetes Service (AKS) In this guide, we'll walk through the process of creating a Persistent Volume Claim (PVC) from Azure Files to use with Azure Kubernetes Service (AKS). This will help you effectively manage storage for your applications. Prerequisites Set Up Azure CLI Azure file share created (in this case: azurestorageaccountname=technexusdevops ) AKS cluster is created (in this case: nginx-cluster ) Steps to Create the PVC 1. Connect to the AKS Cluster Download the cluster credentials to interact with it using kubectl : az aks get-credentials --resource-group 1-c6aa5250-playground-sandbox --name nginx-cluster 2. Create the Secret for Azure File Share Link your file share with Kubernetes using Azure File. First, create a secret to store your Azure Storage account credentials: Create the Secret Run the follow...