Posts

Showing posts with the label PersistenceVolume

K8s Storage Volumes part 1 - EmptyDir

Image
Hello, Dear DevOps enthusiasts, In this post, we are going to explore the emptyDir Volume, which is going to work as local data share between containers in a Pod. I had read the book titled ' Kubernetes in action ', from that book I want to understand Persistance Volumes and Persistence Volume Claims in detail. will run the following example for PV that uses emptyDir volume type. Every new learning is like a game! if you take each trouble as a game level it will be a wonderful game. Once you finish the desired state it's winning the game! why to wait let's jump on this game Kubernetes emptyDir Volume Assumptions Docker installed Kubernetes Installed and configured Cluster AWS access to EC2 instances We need to create a Tomcat container and Logstash container in the Kubernetes pod. In the below diagram, it will share the log file using Kubernetes volume that is empty dir. The tomcat and Logstash cant use the network via loc...

K8s Storage NFS Server on AWS EC2 Instance

Image
Hello DevOps enthuiast, In this psot we would like to explore the options available on Kubernetes Storage and Volume configurations. Especially in AWS environment if we have provisioned the Kubernetes Cluster then how we can use the storage effectively, need to know all the options. In the sequence of learning on 'Kubernetes Storage' experimenting on the NFS server on AWS EC2 instance creation and using it as Persistent Volume. In the later part, we would use the PVC to claim the required space from the available PV. That in turn used inside the Pod as specifying a Volume.  Assumptions Assuming that you have AWS Console access to create EC2 instances.  Basic awareness of the Docker Container Volumes Understand the need for Persistency requirements Login to your aws console Go to EC2 Dashboard, click on the Launch instance button Step 1: Choose an AMI: "CentOS 7 (x86_64) - with updates HVM" Continue from Marketplace Step 2: Choose instance type: Step 3: Add stora...