Skip to content

Instantly share code, notes, and snippets.

View devopsgeek1979's full-sized avatar
🏠
Working from home

Shashi Pal devopsgeek1979

🏠
Working from home
View GitHub Profile
@devopsgeek1979
devopsgeek1979 / cloud-infra-provisioning-checklist.md
Created April 14, 2026 09:49
Cloud Infrastructure Provisioning Checklist

Cloud Infrastructure Provisioning Checklist - AWS & Multi-Cloud Strategy

Pre-Deployment Planning

1. Requirements Gathering

  • Define application architecture (monolith vs microservices)
  • Identify compute requirements (CPU, RAM, storage)
  • Plan network topology (VPC, subnets, security groups)
  • Define disaster recovery (RTO, RPO)
  • Budget estimation and cost optimization
@devopsgeek1979
devopsgeek1979 / openshift-platform-guide.md
Created April 14, 2026 09:49
OpenShift Container Platform - Enterprise Kubernetes

OpenShift Container Platform - Kubernetes on Steroids

OpenShift is Red Hat's enterprise Kubernetes distribution with additional features for DevOps, security, and developer experience.

OpenShift vs Kubernetes - Key Differences

Feature Kubernetes OpenShift
Security Basic RBAC Enhanced RBAC + SELinux
Registry External Built-in internal registry
@devopsgeek1979
devopsgeek1979 / kubernetes-deployment-guide.yaml
Created April 14, 2026 09:49
Kubernetes Fundamentals - Deployments and Services
# Kubernetes Fundamentals - Deployment, Services, and Ingress Quick Reference
## Kubernetes Architecture Overview
```
β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚ Control Plane β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚ API Server β”‚
β”‚ Scheduler β”‚
β”‚ Controller Mgr β”‚
@devopsgeek1979
devopsgeek1979 / complete-devops-workflow.sh
Created April 14, 2026 09:49
Complete DevOps Workflow - Code to Production
# Complete DevOps Workflow - From Code to Production
## 1. Development Phase - Local Testing
```bash
# Clone repository
git clone https://github.com/devopsgeek1979/terraform-basic.git
cd terraform-basic
# Format and validate code locally
terraform fmt -recursive
@devopsgeek1979
devopsgeek1979 / devops-interview-questions.md
Created April 14, 2026 09:49
DevOps Interview Q&A Collection

DevOps Interview Q&A - Terraform, Ansible, CI/CD

Terraform Questions

Q1: What is Terraform State and why is it important?

A: Terraform state is a file (terraform.tfstate) that records the real-world resources that Terraform manages. It's crucial because:

  • Tracks mapping between resource definitions and actual cloud resources
  • Enables Terraform to know what changes to apply
  • Prevents duplicate resource creation
  • Should be stored remotely (S3, Azure Storage) for team collaboration
@devopsgeek1979
devopsgeek1979 / terraform-best-practices.tf
Created April 14, 2026 09:49
Terraform Best Practices & Production Checklist
# Terraform Best Practices & Production Checklist
## 1. Code Organization & Structure
```
terraform/
β”œβ”€β”€ backend.tf # Remote state configuration
β”œβ”€β”€ provider.tf # Provider settings
β”œβ”€β”€ variables.tf # Input variables
β”œβ”€β”€ outputs.tf # Output definitions
β”œβ”€β”€ main.tf # Main infrastructure code
@devopsgeek1979
devopsgeek1979 / linux-admin-quick-reference.sh
Created April 14, 2026 09:49
Linux System Administration Quick Reference
# Linux System Administration Quick Reference (RedHat/CentOS/Ubuntu)
## File & Directory Management
# Find files modified in last 7 days
find /var/log -type f -mtime -7 -ls
# Find large files (>100MB)
find / -type f -size +100M 2>/dev/null
# Secure file deletion
@devopsgeek1979
devopsgeek1979 / ansible-tower-controller-setup.yaml
Created April 14, 2026 09:49
Ansible Tower/Controller Setup Playbooks
# Ansible Tower/Controller Installation & Setup Playbook
---
- name: Bootstrap Linux for Ansible Controller
hosts: all
become: yes
gather_facts: yes
tasks:
- name: Update system packages
package:
@devopsgeek1979
devopsgeek1979 / vsphere-terraform-vm-provisioning.tf
Created April 14, 2026 09:49
VMware vSphere Terraform Provisioning
# VMware vSphere Terraform Provisioning - Quick Reference
## vSphere Provider Configuration
terraform {
required_providers {
vsphere = {
source = "hashicorp/vsphere"
version = "~> 2.3"
}
}
@devopsgeek1979
devopsgeek1979 / multi-cloud-terraform-vpc-vnet.tf
Created April 14, 2026 09:49
Multi-Cloud Terraform - AWS VPC + Azure VNet
# Multi-Cloud Terraform - AWS VPC + Azure VNet Quick Deploy
## AWS Provider & VPC Setup
provider "aws" {
region = var.region
}
resource "aws_vpc" "main" {
cidr_block = "10.0.0.0/16"
enable_dns_hostnames = true