Replica sets with example and commands

[centos@ip-172-31-22-14 ~]$ kubectl scale –replicas=1 deploy/namrata -n=namtestdeployment.apps/namrata scaled[centos@ip-172-31-22-14 ~]$ kubectl scale –replicas=10 deploy/namrata -n=namtestdeployment.apps/namrata scaled[centos@ip-172-31-22-14 ~]$ kubectl get deploy -n=namrataNo resources found in namrata namespace.[centos@ip-172-31-22-14 ~]$ kubectl get deploy -n=namtestNAME READY UP-TO-DATE AVAILABLE AGEnamrata 10/10 10 10 8m54snamrata1 3/3 3 3 6m40s[centos@ip-172-31-22-14 ~]$ kubectl get pods -n=namtestNAME READY STATUS RESTARTS AGEnamrata 1/1 Running 0 116mnamrata-dfb987696-798c7 1/1 Running 0 2m5snamrata-dfb987696-8b6kz 1/1 Running 0 2m5snamrata-dfb987696-bzxsx 1/1 Running 0 2m5snamrata-dfb987696-d9qsq 1/1 Running 0 2m5snamrata-dfb987696-gdmwn 1/1 Running 0 2m5snamrata-dfb987696-gwgfr 1/1 Running 0 2m5snamrata-dfb987696-lxf69 1/1

Read more

Kubernetes

Kubernetes, also known as K8s, is an open-source system for automating deployment, scaling, and management of containerized applications. Open source container orchestration tool It can manage in physical , hybrid and cloud environment No downtime High performance and scalability

Read more

Benefits of docker-compose

Docker compose is used for running multiple container as 1 service Each service is isolated from one another No dependency to start each service independently one yaml file contains all and can be run in 1 shot Docker manages single container , docker-compose manages multiple applications It is a powerful tool , to set up and deploy application Start all services: Docker Compose up. Stop all services: Docker Compose down. Run Docker Compose file: Docker-compose up -d. List the entire

Read more

Docker update & wait

Update : [root@ip-172-31-17-58 centos]# docker update –pids-limit 5 6344a718da9b6344a718da9b[root@ip-172-31-17-58 centos]# docker update –help[root@ip-172-31-17-58 centos]# docker update –cpu-period 200 8d2f95364af1Error response from daemon: CPU cfs period can not be less than 1ms (i.e. 1000) or larger than 1s (i.e. 1000000)[root@ip-172-31-17-58 centos]# docker update –cpu-period 2000 8d2f95364af1 wait : [root@ip-172-31-17-58 centos]# docker start 8d2f95364af18d2f95364af1[root@ip-172-31-17-58 centos]# docker stop 8d2f95364af18d2f95364af1 In another terminal : [root@ip-172-31-17-58 centos]# clear[root@ip-172-31-17-58 centos]# docker wait 8d2f95364af10[root@ip-172-31-17-58 centos]#

Read more

What is docker and container ?

What is Docker ? Answer : Docker helps in containerization of apps , so that app app gets it own environment to run. What is a container ? Containers virtualize the operating system unlike VMs. Containers are portable with that it means it can do development and deployment . In terms of docker its also runnable instance of image. Benefits of Docker ? Fast to create unlike VMs Since OS is not contained its light weight container also contains the

Read more