Posts

Showing posts with the label AWS

Bitbucket Server installation on Linux

Image
Bitbucket is most widely used in the IT industry to provide team collaborative work for short size of teams. Its greater ability is to have integration with Jira and other DevOps tools. Bitbucket encourages private repository creation by default. So they are mostly not available for search engines to discover these projects! So, startup projects will do better here. Prerequisites for Bitbucket installation JRE/JDK: To run the web UI Java is required, Your system must have the JRE/JDK, we can go with the Open JDK as you know that Oracle JDK is now not open to everyone to download! Git: To run the Bitbucket we need Git as a source-code management tool. Ensure the default port 7990 is available on the system. If you are running on the Cloud ensure the TCP port /7990 allows inbound traffic. On the AWS you need to update the Security Group that associated with the EC2 instance. Option of Vagrant box  Vagrant.configure(2) do |config| config.vm.box = "centos/8" c...

K8s Storage Volumes Part 4 - Dynamic Provisioning

Image
Hello guys! I am back with new learning on the Kubernetes Storage Volume section series of posts, We have already seen that how we can create a PV, And then claiming that with different PVC, then you can use the PVC in the Pod manifestation under volumes section, But, in this post we will be exploring the various options available for Dynamic Provisioning with StorageClass. StorageClass - PersistentVolumeClaim used in Pod Wanted to know Kubernetes StorageClasses in depth. Visited many blog posts with different cloud choices people are working. Initially I've gone through the Mumshadmohammad session and practice lab, triedout on GCP platform. Previous Storage related posts Kubernetes Storage - EmptyDir Kubernetes HostPath Kubernetes NFS Volume as PV Basically, Kubernetes maintains two types of StorageClasses: Default storage class (Standard Storage class) User-defined storage class (Additional which is created with kubectl ) The additional storage-class will depend on t...

Controlling EC2 Instance from CLI: AWS automations

Image
When you start learning few commands about AWS CLI you can plan to automate the process with simple bash shell script where you can include set of aws commands into it with simple bash script controls.  How to automate AWS EC2 stop/start using aws cli? Objective of this post is to develop a simple controlling script which can use the AWS CLI commands for start-instances, describe-instances, stop-instances and adding bash scripting logic to it. First we start experiment with each aws ec2 command, then we can proceed by collecting those successful commands to form a automation script. Let's explore now. How to automate AWS EC2 instance using aws-cli How to start an AWS EC2 instance "start-instances" command To start the aws instance you need to pass the instance-id as argument. Following is the command example. aws ec2 start-instances --instance-id i-instancenumber Please change to your instance-id value replace the instancenumber with yours. Execution output looks like ...

Kubernetes (K8s) StatefulSet (sts)

Image
Greetings of the day dear Orchestrator!! In this post, we will discuss exploring the Kubernetes StatefulSet( sts )  What is the purpose of Stateful deployment? Kubernetes' basic unit is Pod, which will be ephemeral in nature and it was designed in such a way that it cannot store the state. To store and maintain the state of the application, Kubernetes introduced a new type of deployment manifestation called it as StatefulSet. Here in this post, we will be experimenting with the most important deployment model that is StatefulSet which will be interconnected with the multiple storage related objects PersistantVolume(PV) and PersistentVolumeClaim (PVC).    Assumptions To work on this experiment you must have Kubernetes cluster running on single node or multi-node and it should have a NFS remote storage access that depends on your platform. Here I've EC2 instance having  NFS service configured and run: Kubernetes Cluster configured and Up Prepare a NFS...

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...

Best Performance DevOps interview Questions

Image
I hope you all doing great with DevOps learnings! There is a huge demand for DevOps engineers, where people turning from the many freshers turning to DevOps Engineer roles and becoming experts after exploring. Here I would like to target the key DevOps tools as interview questions. Here I'm collecting interesting DevOps interview questions out of my experiences and some of my friends who attended in various companies. And also made some of them collected from the most highly professional session delivered in the YouTube tutorials. World-class DevOps Interview Questions SCM Questions Can we build some code from SVN and some from the GIT repository in a single Jenkins job? Merging two branches merge conflicting? How do you resolve it? What is the difference between git clone, git fetch and git pull? How do you deal with git remote repository? AWS Interview Questions  AMI instance took the snapshot from recently build instance, How can I create a new instance? ...