Posts

Showing posts from 2020

Linux Basics

Image
More than 90% of cloud servers and many of the webservers are running on the Linux platform so it is handy if we are aware of the Linux basic commands 1.) PWD : Present working Directory 2) CD: Change directory where CD ~ moves to home directory and cd .. just parent directory  3.) ls: List files folders and executable files in the current directory 4.) apt: Advanced Packaging tool (mainly used to install / update new software packaging) Time to try the combination of CD and ls What is the output of  ls cd .. ? or ls  ..? Now try ls /var/log cd -- will points previously worked directory  what about cd ../.. ? 😉 (yes will move to double strap back ) linux commands con be tuned based on our requirements with flags (- with alphabets eg: -a or -- with full name eg:--all) To get the list of flage type man (manual)  command with wich linux command like man ls or man pwd Lets discuss about the file permissions and access we cam see lot of -rw-r--r and x d will dec...

Minikube & Kubectl -Basic Operations

Image
Minikube & Kubectl will help the developer to create the cluster environment in the local machine and can test the functionality to gain more confidence in the deployment pipeline. Minikube is a one-node cluster environment that contains the master and worker process, which creates a virtual box in the local environment and node runs on top of the virtual box. Install minkube using the official URL: https://minikube.sigs.k8s.io/docs/start/  follow instructions based on the operating system. Once done open the command prompt and execute: minikube start. Kubectl is used to communicate with API server, Master process contains the API server and is the entry point for the Kubernetes. Will check basic commands to check the status of minikubes  kubectl get node: will give the node details with the status minikube status: will give details about the minikube components * The main advantage of Kubernetes is the replicaSet, Kubernetes will take care of taking the replication of the...

Docker + Mongo DB + Volume Mount (Persistence)

Image
We observe that once the docker container is removed,  we lose the entire data along with that container and cant recover which was very precious for the business continuity. 😔  Here we will fix the issue by mounting the volume in the docker-compose file. Prerequisites: Basic awareness about Docker containers and how to make it up. Create docker-compose.yaml file as below  This configuration will pull the latest mongo image from the docker hub. Re-creating the data lose Scenario   Execute the docker file using the command docker-compose up -d  "-d" preferable to run in a detached mode run docker ps to check the container status  Will try to launch to mongo terminal by hitting the below command  docker exec -it c6d1608207ca bash (Used container id can use container name also) Once the terminal got opened execute   mongo admin -u root -p example will help to connect to the mong DB view the database using show dbs Now we can create a new datab...

Docker Network & Docker-compose

Image