Skip to content

Instantly share code, notes, and snippets.

View devops-school's full-sized avatar

DevOps School devops-school

View GitHub Profile
@devops-school
devops-school / elasticsearch.txt
Created September 21, 2022 05:37
Elasticsearch 8.X in Centos 7
Elasticsearch 8.X in Centos 7
-------------------------------
192.168.1.8
https://www.elastic.co/guide/en/elasticsearch/reference/current/install-elasticsearch.html
$ yum install wget unzip -y
$ wget https://artifacts.elastic.co/downloads/elasticsearch/elasticsearch-8.4.2-linux-x86_64.tar.gz
@devops-school
devops-school / README.md
Created July 4, 2023 05:31
Sample Resume: DevOps Engineer

Your Name

Address: [Address], [City, State, ZIP]
Phone: [Phone Number]
Email: [Email Address]

Objective

Highly skilled and motivated Site Reliability Engineer (SRE) with [X] years of experience in designing, building, and maintaining highly scalable and reliable systems. Seeking a challenging position where I can leverage my expertise in automation, monitoring, incident response, and infrastructure management to ensure the availability, performance, and efficiency of critical applications and services.

Education

@devops-school
devops-school / smtp-test-1.sh
Last active April 3, 2024 16:19
Bash/Shell Script to test SMTP SES Credentials
#!/bin/bash
# Set the SMTP server name and port number
SMTP_SERVER="email-smtp.ap-south-1.amazonaws.com"
SMTP_PORT="587"
# Set the sender email address and AWS SES username and password
SENDER_EMAIL="contact@XXXXXXXX.com"
SES_USERNAME="XXXXXXXXXXX"
SES_PASSWORD="XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
@devops-school
devops-school / terraform-install-ansible-playbook-example.tf
Created December 21, 2019 10:59
Terraform Install Ansible and Run Playbook Example
provider "aws" {
region = "eu-west-1"
access_key = ""
secret_key = ""
}
resource "aws_instance" "example" {
ami = "${var.ami-mine}"
instance_type = "t2.micro"
key_name = "rajesh"
### Option 1 - Terraform can generate SSL/SSH private keys using the tls_private_key resource
variable "key_name" {}
resource "tls_private_key" "example" {
algorithm = "RSA"
rsa_bits = 4096
}
resource "aws_key_pair" "generated_key" {
@devops-school
devops-school / Logstash-Pipeline-Example-Part1.md
Last active March 18, 2024 10:39
Logstash Pipeline Config file Example

The Grok plugin is one of the more cooler plugins. It enables you to parse unstructured log data into something structured and queryable. Grok is looking for patterns in the data it’s receiving, so we have to configure it to identify the patterns that interest us. Grok comes with some built in patterns. The pattern we are using in this case is %{COMBINEDAPACHELOG}which can be used when Logstash is receiving log data from Apache HTTP.

input {
    beats {
        port => "5044"
    }
}
@devops-school
devops-school / command.sh
Last active January 28, 2024 20:42
Terraform Azure Creating Linux VM with a Image using Data Sources
$ terraform init
$ terraform plan
$ terraform apply --auto-approve
$ terraform output
@devops-school
devops-school / Configure-Docker-daemon.md
Created May 30, 2020 21:44
How to Configure Docker daemon with a configuration file?

Some popular options for daemon.json

The following sample configures the Docker Engine to accept incoming connections on port 2375. All other configuration options will use default values.

{
    "hosts": ["tcp://0.0.0.0:2375"]
}

The following sample configures the Docker daemon to keep images and containers in an alternate path.

@devops-school
devops-school / kubectl-get.sh
Created January 17, 2020 12:46
Kubernetes Commands: kubectl get - Complete reference - Tutorials and Examples.
# Get commands with basic output
kubectl get services # List all services in the namespace
kubectl get pods --all-namespaces # List all pods in all namespaces
kubectl get pods -o wide # List all pods in the namespace, with more details
kubectl get deployment my-dep # List a particular deployment
kubectl get pods # List all pods in the namespace
kubectl get pod my-pod -o yaml # Get a pod's YAML
kubectl get pod my-pod -o yaml --export # Get a pod's YAML without cluster specific information
kubectl get replicationcontroller web # List a single replication controller with specified NAME
@devops-school
devops-school / AWS Interview Questions and Answer Part – 38.md
Created May 31, 2020 19:49
AWS Interview Questions and Answer Part – 38

What is an AWS region?

  • A region is a geographical area that consists of diffrent availabilty zones. Each region consts of 2(or more) Availability Zones.

What dose an AWS Region consist of?

  • An independent collection of AWS computing resources in a defined geography.

Which statement best describes Availability Zones?

  • Distinct locations from within an AWS region that are engineered to be