DevOps & Cloud (AWS, AZURE, GCP) Tech Free Learning
15.9K subscribers
1.33K photos
14 videos
501 files
1.28K links
https://projects.prodevopsguytech.com // https://blog.prodevopsguytech.com

• We post Daily Trending DevOps/Cloud content
• All DevOps related Code & Scripts uploaded
• DevOps/Cloud Job Related Posts
• Real-time Interview questions & preparation guides
Download Telegram
1702874710982.pdf
128.1 KB
🚀 𝟱𝟬 𝗠𝗼𝘀𝘁 𝗨𝘀𝗲𝗳𝘂𝗹 𝗟𝗶𝗻𝘂𝘅 𝗖𝗼𝗺𝗺𝗮𝗻𝗱𝘀 & 𝗧𝗿𝗶𝗰𝗸𝘀 𝗳𝗼𝗿 𝗗𝗲𝘃𝗢𝗽𝘀 𝗧𝗮𝘀𝗸𝘀 🐧

Greetings, #Devops People 👋

As a DevOps engineer, a harmonious dance with Linux commands is part of our daily routine. 🕺💻 Here's a sneak peek into my toolbox - the Linux commands that light up my workdays! 🌟
Below document will give insights of the most important LINUX commands I use on regular basis.



🔵 𝗙𝗼𝗹𝗹𝗼𝘄 @prodevopsguy 𝗳𝗼𝗿 𝗺𝗼𝗿𝗲 𝘀𝘂𝗰𝗵 𝗰𝗼𝗻𝘁𝗲𝗻𝘁 𝗮𝗿𝗼𝘂𝗻𝗱 𝗰𝗹𝗼𝘂𝗱 & 𝗗𝗲𝘃𝗢𝗽𝘀!!!
Please open Telegram to view this post
VIEW IN TELEGRAM
https://harshhaa.hashnode.dev/zomato-clone-secure-deployment-with-devsecops-cicd

Follow 🍩 Like 👍 Share 👍 Comment Your thoughts 💬
Please open Telegram to view this post
VIEW IN TELEGRAM
☄️ EXCLUSIVE WITH SOURCE CODE (SCRIPTS INCLUDED) ☄️

🔥 Zomato Clone: Secure Deployment with DevSecOps CI/CD

💎 Blog LINK : https://harshhaa.hashnode.dev/zomato-clone-secure-deployment-with-devsecops-cicd

💎 Source Code LINK : https://github.com/NotHarshhaa/Zomato-Clone

🌐FORK THE REPO


🔵 𝗙𝗼𝗹𝗹𝗼𝘄 @prodevopsguy 𝗳𝗼𝗿 𝗺𝗼𝗿𝗲 𝘀𝘂𝗰𝗵 𝗰𝗼𝗻𝘁𝗲𝗻𝘁 𝗮𝗿𝗼𝘂𝗻𝗱 𝗰𝗹𝗼𝘂𝗱 & 𝗗𝗲𝘃𝗢𝗽𝘀!!!
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥 AWS DEVOPS REAL-TIME DEPLOYMENT

Development → Pre-PROD → Production

🔗 Detailed Project Explanation with Screenshots : https://harshhaa.hashnode.dev/aws-devops-real-time-deployment-dev-pre-prod-production

🔗Project Source code: https://github.com/NotHarshhaa/AWS-DevOps_Real-Time_Deployment


✈️ Follow for more: @prodevopsguy
Please open Telegram to view this post
VIEW IN TELEGRAM
𝐓𝐡𝐞 𝐦𝐨𝐬𝐭 𝐜𝐨𝐦𝐦𝐨𝐧 𝐉𝐞𝐧𝐤𝐢𝐧𝐬 𝐞𝐫𝐫𝐨𝐫𝐬 𝐚𝐧𝐝 𝐭𝐡𝐞𝐢𝐫 𝐬𝐨𝐥𝐮𝐭𝐢𝐨𝐧𝐬

1. 𝐏𝐞𝐫𝐦𝐢𝐬𝐬𝐢𝐨𝐧 𝐈𝐬𝐬𝐮𝐞𝐬:
- 😣 𝐄𝐫𝐫𝐨𝐫: Jenkins can't access files.
- 𝐒𝐨𝐥𝐮𝐭𝐢𝐨𝐧: Give Jenkins proper access rights or run it as the right user.

2. 𝐁𝐮𝐢𝐥𝐝 𝐅𝐚𝐢𝐥𝐮𝐫𝐞𝐬:
- 😡 𝐄𝐫𝐫𝐨𝐫: Builds fail.
- 𝐒𝐨𝐥𝐮𝐭𝐢𝐨𝐧: Check logs, fix issues like missing stuff or wrong settings.

3. 𝐖𝐨𝐫𝐤𝐬𝐩𝐚𝐜𝐞 𝐂𝐥𝐞𝐚𝐧𝐮𝐩 𝐈𝐬𝐬𝐮𝐞𝐬:
- 🚫 𝐄𝐫𝐫𝐨𝐫: Workspace gets messy.
- 𝐒𝐨𝐥𝐮𝐭𝐢𝐨𝐧: Configure Jenkins to clean up after builds.

4. 𝐏𝐥𝐮𝐠𝐢𝐧 𝐂𝐨𝐦𝐩𝐚𝐭𝐢𝐛𝐢𝐥𝐢𝐭𝐲:
- 😬 𝐄𝐫𝐫𝐨𝐫: Plugins don't work with Jenkins.
- 𝐒𝐨𝐥𝐮𝐭𝐢𝐨𝐧: Update or find compatible plugins.

5. 𝐌𝐚𝐬𝐭𝐞𝐫-𝐒𝐥𝐚𝐯𝐞 𝐂𝐨𝐧𝐧𝐞𝐜𝐭𝐢𝐨𝐧 𝐏𝐫𝐨𝐛𝐥𝐞𝐦𝐬:
- 😞 𝐄𝐫𝐫𝐨𝐫: Master can't talk to slaves.
- 𝐒𝐨𝐥𝐮𝐭𝐢𝐨𝐧: Check the network, slave online, and credentials right.

6. 𝐎𝐮𝐭 𝐨𝐟 𝐌𝐞𝐦𝐨𝐫𝐲 𝐄𝐫𝐫𝐨𝐫𝐬:
- 😰 𝐄𝐫𝐫𝐨𝐫: Jenkins runs out of memory.
- 𝐒𝐨𝐥𝐮𝐭𝐢𝐨𝐧: Give Jenkins more memory.

7. 𝐉𝐞𝐧𝐤𝐢𝐧𝐬 𝐍𝐨𝐭 𝐒𝐭𝐚𝐫𝐭𝐢𝐧𝐠:
- 😨 𝐄𝐫𝐫𝐨𝐫: Jenkins won't start.
- 𝐒𝐨𝐥𝐮𝐭𝐢𝐨𝐧: Check logs for issues, like port conflicts or wrong configs.

8. 𝐏𝐥𝐮𝐠𝐢𝐧 𝐈𝐧𝐬𝐭𝐚𝐥𝐥𝐚𝐭𝐢𝐨𝐧 𝐈𝐬𝐬𝐮𝐞𝐬:
- 😒 𝐄𝐫𝐫𝐨𝐫: Can't install plugins.
- 𝐒𝐨𝐥𝐮𝐭𝐢𝐨𝐧: Fix internet, firewall, and proxy settings.

9. 𝐒𝐥𝐨𝐰 𝐁𝐮𝐢𝐥𝐝 𝐄𝐱𝐞𝐜𝐮𝐭𝐢𝐨𝐧:
- 😴 𝐄𝐫𝐫𝐨𝐫: Builds take forever.
- 𝐒𝐨𝐥𝐮𝐭𝐢𝐨𝐧: Speed up builds by parallelizing tasks, optimizing code, or upgrading hardware.

10. 𝐄𝐦𝐚𝐢𝐥 𝐂𝐨𝐧𝐟𝐢𝐠𝐮𝐫𝐚𝐭𝐢𝐨𝐧 𝐏𝐫𝐨𝐛𝐥𝐞𝐦𝐬:
- 😟 𝐄𝐫𝐫𝐨𝐫: Email notifications messed up.
- 𝐒𝐨𝐥𝐮𝐭𝐢𝐨𝐧: Check email settings.

11. 𝐒𝐂𝐌 𝐂𝐨𝐧𝐟𝐢𝐠𝐮𝐫𝐚𝐭𝐢𝐨𝐧 𝐄𝐫𝐫𝐨𝐫𝐬:
- 😤 𝐄𝐫𝐫𝐨𝐫: Source code setup is wrong.
- 𝐒𝐨𝐥𝐮𝐭𝐢𝐨𝐧: Verify settings for Git, SVN, etc.

12. 𝐉𝐞𝐧𝐤𝐢𝐧𝐬 𝐉𝐨𝐛 𝐓𝐫𝐢𝐠𝐠𝐞𝐫𝐢𝐧𝐠:
- 😕𝐄𝐫𝐫𝐨𝐫: Jobs not running.
- 𝐒𝐨𝐥𝐮𝐭𝐢𝐨𝐧: Review job triggering settings.

Remember, always read the error messages and logs, and you can usually figure things out. If you're still stuck, ask the Jenkins community for help. 😊


❤️ Follow for more: @prodevopsguy
Please open Telegram to view this post
VIEW IN TELEGRAM
🚀 DevOps Project-09: DevSecOps : Netflix Clone CI-CD with Monitoring | Email 🚀

🔗 Project Link: https://github.com/NotHarshhaa/DevOps-Projects/tree/master/DevOps%20Project-09 🔗

🌐 Project Overview :-
I will be deploying a Netflix clone. I will be using Jenkins as a CICD tool and deploying our application on a Docker container and Kubernetes Cluster and I will monitor the Jenkins and Kubernetes metrics using Grafana, Prometheus and Node exporter.

❤️‍🔥 Share with friends and colleagues ❤️‍🔥

❤️ Follow for more: @prodevopsguy
Please open Telegram to view this post
VIEW IN TELEGRAM
❤️‍🔥6 Most Confusing GIT Commands 👇

🟡 Simplified and concise illustration of commands for better understanding

𝟭. 𝗴𝗶𝘁 𝗺𝗲𝗿𝗴𝗲 𝘃𝘀 𝗴𝗶𝘁 𝗿𝗲𝗯𝗮𝘀𝗲:
- 𝘨𝘪𝘵 𝘮𝘦𝘳𝘨𝘦 combines branch changes with new merge commits
- 𝘨𝘪𝘵 𝘳𝘦𝘣𝘢𝘴𝘦 moves branch changes on top, creating a linear history

𝟮. 𝗴𝗶𝘁 𝗿𝗲𝘀𝗲𝘁 𝘃𝘀 𝗴𝗶𝘁 𝗿𝗲𝘃𝗲𝗿𝘁:
- 𝘨𝘪𝘵 𝘳𝘦𝘴𝘦𝘵 undoes changes and moves the branch pointer, discarding subsequent commits
- 𝘨𝘪𝘵 𝘳𝘦𝘷𝘦𝘳𝘵 creates new undo commits, preserving history

𝟯. 𝗴𝗶𝘁 𝗳𝗲𝘁𝗰𝗵 𝘃𝘀 𝗴𝗶𝘁 𝗽𝘂𝗹𝗹:
- 𝘨𝘪𝘵 𝘧𝘦𝘵𝘤𝘩 downloads remote changes without auto-merging
- 𝘨𝘪𝘵 𝘱𝘶𝘭𝘭 fetches and auto-merges remote changes

In short,
git pull = git fetch + git merge

DevOps is the most happening and integral part of almost all organizations.


❤️ Follow for more: @prodevopsguy
Please open Telegram to view this post
VIEW IN TELEGRAM
🌟 Azure vs AWS vs GCP

Lately, I've been noticing a surge in discussions comparing different cloud services across various providers.🌩🔍

It sparked my curiosity, and I thought, "Why not create my own comparison?" 🤔

So, after diving deep and gathering insights, I've put together my version. 🚀


✈️ Follow for more: @prodevopsguy
Please open Telegram to view this post
VIEW IN TELEGRAM
𝐓𝐨𝐩 𝐔𝐬𝐞𝐝 𝐃𝐨𝐜𝐤𝐞𝐫 𝐂𝐨𝐦𝐦𝐚𝐧𝐝𝐬 🐋

🐳 𝐃𝐨𝐜𝐤𝐞𝐫 𝐁𝐚𝐬𝐢𝐜𝐬:
🏁 docker run: Run a container from an image.
📦 docker build: Build an image from a Dockerfile.
🔍 docker images: List all images on the system.
🗑 docker rmi: Remove one or more images.
🏗 docker-compose up: Start services defined in a Compose file.
🛑 docker stop: Stop a running container.
♻️ docker rm: Remove one or more containers.
💡 docker ps: List running containers.


🐋 𝐃𝐨𝐜𝐤𝐞𝐫 𝐍𝐞𝐭𝐰𝐨𝐫𝐤𝐢𝐧𝐠:
🌐 docker network create: Create a network.
🔗 docker network connect: Connect a container to a network.
🛠 docker network inspect: Inspect a network.
🔄 docker network disconnect: Disconnect a container from a network.


📁 𝐃𝐨𝐜𝐤𝐞𝐫 𝐕𝐨𝐥𝐮𝐦𝐞𝐬:
📂 docker volume create: Create a volume.
🔌 docker volume ls: List volumes.
🔄 docker volume inspect: Inspect a volume.
🗑 docker volume rm: Remove one or more volumes.



⚙️ 𝐃𝐨𝐜𝐤𝐞𝐫 𝐂𝐨𝐦𝐩𝐨𝐬𝐞:
📋 docker-compose up: Start services defined in a Compose file.
🗄 docker-compose down: Stop and remove services defined in a Compose file.
🔧 docker-compose build: Build or rebuild services.
📊 docker-compose logs: View output logs from services.
🔄 docker-compose restart: Restart services.
📈 docker-compose scale: Scale services to a specified number.


🔵 𝗙𝗼𝗹𝗹𝗼𝘄 @prodevopsguy 𝗳𝗼𝗿 𝗺𝗼𝗿𝗲 𝘀𝘂𝗰𝗵 𝗰𝗼𝗻𝘁𝗲𝗻𝘁 𝗮𝗿𝗼𝘂𝗻𝗱 𝗰𝗹𝗼𝘂𝗱 & 𝗗𝗲𝘃𝗢𝗽𝘀!!!
Please open Telegram to view this post
VIEW IN TELEGRAM
🔥 Becoming a Certified Kubernetes Administrator, an EXPERT in K8s from scratch, and much MORE! 🔥

🔗 Link: https://github.com/NotHarshhaa/Certified_Kubernetes_Administrator

If you want to become a Certified Kubernetes Administrator, or you want to become an EXPERT in Kubernetes, learn Kubernetes from scratch and understand everything, this repo is a good choice.

🟡 Table of Contexts:

1. Kubernetes
2. Helm
3. Operator
4. Prometheus
5. EKS



❤️ Follow for more: @prodevopsguy
Please open Telegram to view this post
VIEW IN TELEGRAM
https://harshhaa.hashnode.dev/deploying-an-application-on-kubernetes-a-complete-guide

Follow 🍩 Like 👍 Share 👍 Comment Your thoughts 💬
Please open Telegram to view this post
VIEW IN TELEGRAM
https://harshhaa.hashnode.dev/the-devops-roadmap-your-path-to-success

Follow 🍩 Like 👍 Share 👍 Comment Your thoughts 💬

✈️ 𝗙𝗼𝗹𝗹𝗼𝘄 @prodevopsguy 𝗳𝗼𝗿 𝗺𝗼𝗿𝗲 𝘀𝘂𝗰𝗵 𝗰𝗼𝗻𝘁𝗲𝗻𝘁 𝗮𝗿𝗼𝘂𝗻𝗱 𝗰𝗹𝗼𝘂𝗱 & 𝗗𝗲𝘃𝗢𝗽𝘀!!!
Please open Telegram to view this post
VIEW IN TELEGRAM
🚀 𝐊𝐮𝐛𝐞𝐫𝐧𝐞𝐭𝐞𝐬 𝐂𝐨𝐦𝐦𝐚𝐧𝐝 𝐨𝐟 𝐭𝐡𝐞 𝐃𝐚𝐲! 🚀

kubectl get pods --all-namespaces -o jsonpath="{.items[*].spec.containers[*].image}" | sort | uniq -c

➡️ Dive deeper into your Kubernetes clusters with this power command! It lists all container images used by your pods across all namespaces, sorts them, and gives you a count of each unique image. It's a great way to audit and manage your container images and ensure consistency across your deployments.

𝐏𝐫𝐨 𝐓𝐢𝐩: Mastering jsonpath with kubectl can unlock powerful ways to query and manipulate your Kubernetes resources directly from the command line.



✈️ 𝗙𝗼𝗹𝗹𝗼𝘄 @prodevopsguy 𝗳𝗼𝗿 𝗺𝗼𝗿𝗲 𝘀𝘂𝗰𝗵 𝗰𝗼𝗻𝘁𝗲𝗻𝘁 𝗮𝗿𝗼𝘂𝗻𝗱 𝗰𝗹𝗼𝘂𝗱 & 𝗗𝗲𝘃𝗢𝗽𝘀!!!
Please open Telegram to view this post
VIEW IN TELEGRAM
☄️ Top 79 Linux commands that are commonly used in DevOps:

1. ls: List directory contents
2. cd: Change directory
3. pwd: Print working directory
4. mkdir: Create a directory
5. touch: Create a file
6. cp: Copy files and directories
7. mv: Move or rename files and directories
8. rm: Remove files and directories
9. find: Search for files and directories
10. grep: Search for patterns in files
11. cat: Concatenate and display files
12. less: View file contents page by page
13.head: Display the first lines of a file
14. tail: Display the last lines of a file
15. vi/vim: Text editor
16. nano: Text editor
17. tar: Archive and compress files
18. gzip: Compress files
19. gunzip: Decompress files
20. wget: Download files from the web
21. curl: Transfer data to or from a server
22. ssh: Secure shell remote login
23. scp: Securely copy files between hosts
24. chmod: Change file permissions
25. chown: Change file ownership
26. chgrp: Change group ownership
27. ps: Display running processes
28. top: Monitor system resources and processes
29. kill: Terminate processes
30. df: Display disk space usage
31. du: Estimate file and directory space usage
32. free: Display memory usage
33. uname: Print system information
34. ifconfig: Configure network interfaces
35. ping: Test network connectivity
36. netstat: Network statistics
37. iptables: Firewall administration
38. systemctl: Manage system services
39. journalctl: Query the system journal
40. crontab: Schedule cron jobs
41. useradd: Create a user account
42. passwd: Change user password
43. su: Switch user
44. sudo: Execute a command as another user
45. usermod: Modify user account
46. groupadd: Create a group
47. groupmod: Modify a group
48. id: Print user and group information
49. ssh-keygen: Generate SSH key pairs
50. rsync: Synchronize files and directories
51. diff: Compare files line by line
52. patch: Apply a patch to files
53. tar: Extract files from an archive
54. curl: Perform HTTP requests
55. nc: Netcat - networking utility
56. wget: Download files from the web
57. whois: Lookup domain registration details
58. dig: DNS lookup utility
59. sed: Stream editor for text manipulation
60. awk: Pattern scanning and processing language
61. sort: Sort lines in a text file
62. cut: Extract sections from lines of files
63. wc: Word, line, character, and byte count
64. tee: Redirect output to multiple files or commands
65. history: Command history
66. source: Execute commands from a file in the current shell
67. alias: Create command aliases
68. ln: Create links between files
69. uname: Print system information
70. lsof: List open files and processes
71. mkfs: Create a file system
72. mount: Mount a file system
73. umount: Unmount a file system
74. ssh-agent: Manage SSH keys in memory
75. grep: Search for patterns in files
76. tr: Translate characters
77. cut: Select portions of lines from files
78. paste: Merge lines of files
79. uniq: Report or omit repeated lines


✈️ 𝗙𝗼𝗹𝗹𝗼𝘄 @prodevopsguy 𝗳𝗼𝗿 𝗺𝗼𝗿𝗲 𝘀𝘂𝗰𝗵 𝗰𝗼𝗻𝘁𝗲𝗻𝘁 𝗮𝗿𝗼𝘂𝗻𝗱 𝗰𝗹𝗼𝘂𝗱 & 𝗗𝗲𝘃𝗢𝗽𝘀!!!
Please open Telegram to view this post
VIEW IN TELEGRAM
☄️ Top 4 Kubernetes Service Types in one diagram.


The diagram below shows 4 ways to expose a Service.

In Kubernetes, a Service is a method for exposing a network application in the cluster. We use a Service to make that set of Pods available on the network so that users can interact with it.

There are 4 types of Kubernetes services: ClusterIP, NodePort, LoadBalancer and ExternalName. The “type” property in the Service's specification determines how the service is exposed to the network.


🔹 ClusterIP
➡️ ClusterIP is the default and most common service type. Kubernetes will assign a cluster-internal IP address to ClusterIP service. This makes the service only reachable within the cluster.

🔹 NodePort
➡️ This exposes the service outside of the cluster by adding a cluster-wide port on top of ClusterIP. We can request the service by NodeIP:NodePort.

🔹 LoadBalancer
➡️ This exposes the Service externally using a cloud provider’s load balancer.

🔹 ExternalName
➡️ This maps a Service to a domain name. This is commonly used to create a service within Kubernetes to represent an external database.


✈️ 𝗙𝗼𝗹𝗹𝗼𝘄 @prodevopsguy 𝗳𝗼𝗿 𝗺𝗼𝗿𝗲 𝘀𝘂𝗰𝗵 𝗰𝗼𝗻𝘁𝗲𝗻𝘁 𝗮𝗿𝗼𝘂𝗻𝗱 𝗰𝗹𝗼𝘂𝗱 & 𝗗𝗲𝘃𝗢𝗽𝘀!!!
Please open Telegram to view this post
VIEW IN TELEGRAM