Q. I configure an ec2 instance with x keypair, unfortunately I lost my keypair, how can I recover my keypair to logon into my instance
Steps for connecting to an EBS-backed instance with a different key pair
Step 1: Create a new key pair
Step 2: Get information about the original instance and its root volume
Step 3: Stop the original instance
Step 4: Launch a temporary instance
Step 5: Detach the root volume from the original instance and attach it to the temporary instance
Step 6: Add the new public key to authorized_keys on the original volume mounted to the temporary instance
Step 7: Unmount and detach the original volume from the temporary instance, and reattach it to the original instance
Step 8: Connect to the original instance using the new key pair
Step 9: Clean up
Steps for connecting to an EBS-backed instance with a different key pair
Step 1: Create a new key pair
Step 2: Get information about the original instance and its root volume
Step 3: Stop the original instance
Step 4: Launch a temporary instance
Step 5: Detach the root volume from the original instance and attach it to the temporary instance
Step 6: Add the new public key to authorized_keys on the original volume mounted to the temporary instance
Step 7: Unmount and detach the original volume from the temporary instance, and reattach it to the original instance
Step 8: Connect to the original instance using the new key pair
Step 9: Clean up
Capgemini Hiring Freshers for DevOps Engineer with 0.6 to 2 years of Experience
Job Role: Software Engineer
Eligibility: BE/Btech or any degree
Job location: Kolkata
Job Description:
- Jenkins CI CD setup and dependencies setup
- Hands on experience on Docker
- Good understanding of AWS
- Good understanding of Chef / Ansible
- Good hold on Jenkins
- DevOps tooling setup e g Jenkins Cloud platform setup and deployment PCF AWS GITHUB Jira No SQL DBs etc ,Good to have exposure to scripting language Python Bash
- Managing Production releases and supporting production issues caused by application execution environment
- Procuring Dev and Production cloud infrastructure components Creating Development and Production application development and operation environment
- Exposure to a Cloud platform would be appreciated , Hands on Unix Linux operating systems
Interested candidates apply below.
Register : https://www.capgemini.com/in-en/jobs/devops-engineer-0-6-to-2-years-kolkata/
Job Role: Software Engineer
Eligibility: BE/Btech or any degree
Job location: Kolkata
Job Description:
- Jenkins CI CD setup and dependencies setup
- Hands on experience on Docker
- Good understanding of AWS
- Good understanding of Chef / Ansible
- Good hold on Jenkins
- DevOps tooling setup e g Jenkins Cloud platform setup and deployment PCF AWS GITHUB Jira No SQL DBs etc ,Good to have exposure to scripting language Python Bash
- Managing Production releases and supporting production issues caused by application execution environment
- Procuring Dev and Production cloud infrastructure components Creating Development and Production application development and operation environment
- Exposure to a Cloud platform would be appreciated , Hands on Unix Linux operating systems
Interested candidates apply below.
Register : https://www.capgemini.com/in-en/jobs/devops-engineer-0-6-to-2-years-kolkata/
Q.How to move Jenkins from one PC to another
install a fresh Jenkins instance on the new server
Be sure the old and the new Jenkins instances are stopped
Archive all the content of the JENKINS_HOME of the old Jenkins instance
Extract the archive into the new JENKINS_HOME directory
Launch the new Jenkins instance
Do not forget to change documentation/links to your new instance of Jenkins :)
Do not forget to change the owner of the new Jenkins files : chown -R jenkins:jenkins $JENKINS_HOME
-- Stop both Jenkins servers
-- Copy JENKINS_HOME (e.g. /var/lib/jenkins) from the old server to the new one. From a console in the new server:
-- rsync -av username@old-server-IP:/var/lib/jenkins/ /var/lib/jenkins/
Start your new Jenkins server
install a fresh Jenkins instance on the new server
Be sure the old and the new Jenkins instances are stopped
Archive all the content of the JENKINS_HOME of the old Jenkins instance
Extract the archive into the new JENKINS_HOME directory
Launch the new Jenkins instance
Do not forget to change documentation/links to your new instance of Jenkins :)
Do not forget to change the owner of the new Jenkins files : chown -R jenkins:jenkins $JENKINS_HOME
-- Stop both Jenkins servers
-- Copy JENKINS_HOME (e.g. /var/lib/jenkins) from the old server to the new one. From a console in the new server:
-- rsync -av username@old-server-IP:/var/lib/jenkins/ /var/lib/jenkins/
Start your new Jenkins server
what is the diff b/w declarative pipeline and script based pipeline?
Declarative starts syntax with: pipeline
Script based pipeline starts syntax with : node
Script based pipeline starts syntax with : node
What are Declarative Pipelines in Jenkins?
pipeline {
agent any
stages {
stage(‘Build’) {
steps {
// Statements…
}
}
stage (‘Test’) {
steps {
// Statements…
}
}
}
}
The above code has 3 major elements
• Pipeline: The block of script contents.
• Agent: Defines where the pipeline will start running from.
• Stage: The pipelines contain several steps enclosed in the block called Stage.
pipeline {
agent any
stages {
stage(‘Build’) {
steps {
// Statements…
}
}
stage (‘Test’) {
steps {
// Statements…
}
}
}
}
The above code has 3 major elements
• Pipeline: The block of script contents.
• Agent: Defines where the pipeline will start running from.
• Stage: The pipelines contain several steps enclosed in the block called Stage.
Scripted Syntax
node {
stage('Build') {
//
}
stage('Test') {
//
}
stage('Deploy') {
//
}
node {
stage('Build') {
//
}
stage('Test') {
//
}
stage('Deploy') {
//
}
Trung Nguyễn:
https://github.com/fluent/fluentd-kubernetes-daemonset
but https://github.com/fluent/fluentd-kubernetes-daemonset is not support Containerd
https://github.com/fluent/fluentd-kubernetes-daemonset
but https://github.com/fluent/fluentd-kubernetes-daemonset is not support Containerd
GitHub
GitHub - fluent/fluentd-kubernetes-daemonset: Fluentd daemonset for Kubernetes and it Docker image
Fluentd daemonset for Kubernetes and it Docker image - fluent/fluentd-kubernetes-daemonset