What is Docker volume and how to work with it?

Docker volumes are the file systems mounted with in a containers, that are originally created in the root file system of the docker host. Docker volumes can be shared across multiple containers running in that particular Docker host. Docker volumes can be used to share any common artifacts across container. docker volume create [volume_name] command will create the docker volume.

Read more

SRE – Day2

What is Docker volume and how to work with it? Docker volumes are file systems mounted on Docker containers to preserve data generated by the running container. The volumes are stored on the host, independent of the container life cycle. This allows users to back up data and share file systems between containers easily. To create a Docker Volume use the command: Mounting a Data Volume: What is Kubernetes pod? Pod is a Logical definition of Running applications in Kubernetes.

Read more

What are the new major changes happend in kubernetes 1.22?

What are the new major changes happened in Kubernetes 1.22? Server-Side Apply made generally available External credential providers, available by way of plug-ins Etcd, the default back-end storage for Kubernetes has been updated to a new release (3.5.0) Better support for developing and running on Microsoft Windows. QoS for memory resources is available as a beta feature. The cgroups v2 API can now be used to designate how memory is allocated and isolated for pods, making it easier to deploy

Read more

What is Kubernetes pod?

A pod is the smallest execution unit in Kubernetes. A pod encapsulates one or more applications. Pods are ephemeral by nature, if a pod (or the node it executes on) fails, Kubernetes can automatically create a new replica of that pod to continue operations. Pods include one or more containers.

Read more

What is Docker volume and how to work with it?

To have persistent data and to share data between containers, Docker came up with the concept of Docker Volume.Volumes are directories that are outside of the default File System and exist as normal directories and files on the host filesystem.As it the volume is outside the container and on host machine, data will not be lost on removal of container. New container can use the same files and directories from the volume.

Read more

Array map() Method In JavaScript

The map() method in JavaScript creates an array by calling a specific function on each element present in the parent array. It is a non-mutating method. Generally map() method is used to iterate over an array and calling function on every element of array. Syntax: array.map(function(currentValue, index, arr), thisValue) Parameters: This method accepts two parameters as mentioned above and described below: function(currentValue, index, arr): It is required parameter and it runs on each element of array. It contains three parameters which are listed below: currentValue: It is

Read more

Access modifier in PHP

What are Access Modifiers ? Access modifiers are object-oriented programming that is used to set the accessibility of classes, constructors, methods, and other members of php.Using the access modifiers we can set the scope or accessibility of these classes, methods, constructors, and other members.  There are three types of access modifier in PHP public protected private Public :- When we define class members as public, then they are accessible from anywhere, even from outside of the class scope. eg:- Protected: Class members

Read more

What is Spread syntax (…) in JavaScript ?

pread syntax (…) allows an iterable such as an array expression or string to be expanded in places where zero or more arguments (for function calls) or elements (for array literals) are expected, or an object expression to be expanded in places where zero or more key-value pairs (for object literals) are expected. The Spread Syntax The spread syntax is simply three dots: … It allows an iterable to expand in places where 0+ arguments are expected. Definitions are tough without context.

Read more

What are Rest parameters in JavaScript ?

The rest parameter syntax allows a function to accept an indefinite number of arguments as an array, providing a way to represent variadic functions in JavaScript. Now, What is variadic function ? In mathematics and in computer programming, a variadic function is a function of indefinite arity, i.e., one which accepts a variable number of arguments. Support for variadic functions differs widely among programming languages. What is Rest parameter A function definition’s last parameter can be prefixed with “…” , which will cause all remaining (user supplied) parameters to be placed within a “standard” JavaScript

Read more

How to get data from database and display in homepage in laravel

step1 create a controller usning following comand php artisan make:controller StudentController use the code mentioned below in controller :- <?php namespace App\Http\Controllers; use Illuminate\Http\Request;Use App\User; class StudentController extends Controller{      public function index()    {         $students = User::all();       return view(‘home’,compact(‘students’));   }} Step 2 Using foreach loop just display the data in tabular forn by creating a table in home page using mentioned below code in home.blade.php Step 3 The last and and final step is to set route to call studentController to view data. Just add following code in route/web.php Route::get(‘view-records’,’StudentController@index’)->name(‘view-records’); complted :

Read more

Assignment for SRE Day#1

Since Git is distributed filesystem and each and every repo is considered as complete server, so ate any point of time we have a copy of the source code.Git stores the each commit as SHA value instead of version no. like SVN , clearcase etc.even the minor changes in the code make changes the SHA-1 value, so thats’s why we call it as file system versioning tool List down top 20 jenkins plugins Bitbucket Build Pipeline Script security artifactory active-directory

Read more

What is continuous integration?

Continuous integration (CI) is a development practice where development teams make small, frequent changes to code. An automated build verifies the code each time developers check their changes into the version control repository. As a result, development teams can detect problems early.  Continuous integration is the first part of CI/CD, a practice that enables application development teams to release incremental code changes to production quickly and regularly.

Read more

Define git workflow and list down all the git workflow options

Gitflow Workflow is a Git workflow that helps with continuous software development and implementing DevOps practices. It was first published and made popular by Vincent Driessen at nvie. The Gitflow Workflow defines a strict branching model designed around the project release. This provides a robust framework for managing larger projects.   Gitflow is ideally suited for projects that have a scheduled release cycle and for the DevOps best practice of continuous delivery.  Git Workflow Commands: init – Initialize a new git repo with support for the branching model.

Read more

Write down steps to add new linux node of Jenkins?

Install JAVA and necessary packages to the node Create a user on the agent to be used by Jenkins Generate an ssh key. … Add the public key to the authorized_keys file of the Jenkins user on the node. Add the agent node in Jenkin UI. Go to Manage Jenkins, then Manage Nodes, then click New Node. Here you can give your node a name, then select Permanent Agent and click OK. Select Launch Slave Agents via SSH for Launch

Read more

What is continuous integration?

Continuous integration is a type of DevOps practice where all the steps involved in the software release and development are integrated and automated with the help of tools which perform those actions. You can integrate Git, Mavne, Ant, Java, Kubernetes and so many tools in a single flow to automate the software release and development

Read more

Define Git workflow and list down all the git workflow option.

A Git workflow is a recipe or recommendation for how to use Git to accomplish work in a consistent and productive manner. When you have a large team of developers and DevOps personal to work on end to end delivery of the software, there are multiple people involved in the flow. Each individual will have its own work to complete and push the same changes to the main branch. All the people will divide the end to end flow in

Read more
1 66 67 68 69 70 332