SRE – Day1
Limited Time Offer!
For Less Than the Cost of a Starbucks Coffee, Access All DevOpsSchool Videos on YouTube Unlimitedly.
Master DevOps, SRE, DevSecOps Skills!
Git is not a file versioning tool. Its file system versioning tool. How?
Git thinks of its data more like a series of snapshots of a miniature filesystem. With Git, every time you commit, or save the state of your project, Git basically takes a picture of what all your files look like at that moment and stores a reference to that snapshot. To be efficient, if files have not changed, Git doesn’t store the file again, just a link to the previous identical file it has already stored. Git thinks about its data more like a stream of snapshots.
List down top 20 Jenkins plugins
Subversion,Pipeline: Declarative Agent API,Docker Pipeline,Role-based Authorization Strategy,NodeJS,PowerShell
jQuery,Web for Blue Ocean,Mailer,jUnit,Git,LDAP,PAM Authentication,Python,Log Parser
Office 365 Connector,Groovy,JaCoCo,Ansible,SAML
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 Method.
- Enter the hostname or IP address of node in the Host field.
- Click the Add button next to Credentials and select the Jenkins scope.
- For the credential, set Kind to SSH username with private key.
- Enterjenkins for the username.
- For the private key, select Enter directly. Then, copy the contents of your private key file (~/.ssh/id_rsa by default) and paste it into the Key box.
- Click Save to save the new node.
Define git workflow and list down all the git workflow options.
Git Workflow helps in identifying a branching strategy for the Project.
A Git workflow is a recommendation for how to use Git to accomplish work in a consistent and productive manner
- GitFlow
- Fork
- Feature Branch
- Centralized Git workflow
What is continuous integration?
CI tool does the following:
- Automates SDLC phases
- Integrates various tools
- Provides Immediate feedback for various stages in SDLC
- can be scheduled (trigger)