1702874710982.pdf
128.1 KB
Greetings, #Devops People
As a DevOps engineer, a harmonious dance with Linux commands is part of our daily routine.
Below document will give insights of the most important LINUX commands I use on regular basis.
Please open Telegram to view this post
VIEW IN TELEGRAM
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 💬
Follow
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
https://drive.google.com/drive/u/0/folders/1I8QqnzZonRewbSnUMyfC9-tRduEJ4gyB
https://drive.google.com/drive/u/0/folders/1xWFAJguXXuvjRKYB5aWBiyrftCxxozK-
https://drive.google.com/drive/u/0/folders/1oiJn-YcJwZ7_UQ_keW6qA3-GUW19sK6Q
https://drive.google.com/drive/u/0/folders/1cgUttmyCZcFsqqk8uKZVSV_qi7oe32Ov
https://drive.google.com/drive/u/0/folders/17iQT-S9qT0HUyA-Ks1QDJs_cTBZp5gGN
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
1. 𝐏𝐞𝐫𝐦𝐢𝐬𝐬𝐢𝐨𝐧 𝐈𝐬𝐬𝐮𝐞𝐬:
-
-
2. 𝐁𝐮𝐢𝐥𝐝 𝐅𝐚𝐢𝐥𝐮𝐫𝐞𝐬:
-
-
3. 𝐖𝐨𝐫𝐤𝐬𝐩𝐚𝐜𝐞 𝐂𝐥𝐞𝐚𝐧𝐮𝐩 𝐈𝐬𝐬𝐮𝐞𝐬:
-
-
4. 𝐏𝐥𝐮𝐠𝐢𝐧 𝐂𝐨𝐦𝐩𝐚𝐭𝐢𝐛𝐢𝐥𝐢𝐭𝐲:
-
-
5. 𝐌𝐚𝐬𝐭𝐞𝐫-𝐒𝐥𝐚𝐯𝐞 𝐂𝐨𝐧𝐧𝐞𝐜𝐭𝐢𝐨𝐧 𝐏𝐫𝐨𝐛𝐥𝐞𝐦𝐬:
-
-
6. 𝐎𝐮𝐭 𝐨𝐟 𝐌𝐞𝐦𝐨𝐫𝐲 𝐄𝐫𝐫𝐨𝐫𝐬:
-
-
7. 𝐉𝐞𝐧𝐤𝐢𝐧𝐬 𝐍𝐨𝐭 𝐒𝐭𝐚𝐫𝐭𝐢𝐧𝐠:
-
-
8. 𝐏𝐥𝐮𝐠𝐢𝐧 𝐈𝐧𝐬𝐭𝐚𝐥𝐥𝐚𝐭𝐢𝐨𝐧 𝐈𝐬𝐬𝐮𝐞𝐬:
-
-
9. 𝐒𝐥𝐨𝐰 𝐁𝐮𝐢𝐥𝐝 𝐄𝐱𝐞𝐜𝐮𝐭𝐢𝐨𝐧:
-
-
10. 𝐄𝐦𝐚𝐢𝐥 𝐂𝐨𝐧𝐟𝐢𝐠𝐮𝐫𝐚𝐭𝐢𝐨𝐧 𝐏𝐫𝐨𝐛𝐥𝐞𝐦𝐬:
-
-
11. 𝐒𝐂𝐌 𝐂𝐨𝐧𝐟𝐢𝐠𝐮𝐫𝐚𝐭𝐢𝐨𝐧 𝐄𝐫𝐫𝐨𝐫𝐬:
-
-
12. 𝐉𝐞𝐧𝐤𝐢𝐧𝐬 𝐉𝐨𝐛 𝐓𝐫𝐢𝐠𝐠𝐞𝐫𝐢𝐧𝐠:
-
-
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.
Please open Telegram to view this post
VIEW IN TELEGRAM
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.
Please open Telegram to view this post
VIEW IN TELEGRAM
𝟭. 𝗴𝗶𝘁 𝗺𝗲𝗿𝗴𝗲 𝘃𝘀 𝗴𝗶𝘁 𝗿𝗲𝗯𝗮𝘀𝗲:
- 𝘨𝘪𝘵 𝘮𝘦𝘳𝘨𝘦 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.
Please open Telegram to view this post
VIEW IN TELEGRAM
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.
Please open Telegram to view this post
VIEW IN TELEGRAM
𝐓𝐨𝐩 𝐔𝐬𝐞𝐝 𝐃𝐨𝐜𝐤𝐞𝐫 𝐂𝐨𝐦𝐦𝐚𝐧𝐝𝐬 🐋
🐳 𝐃𝐨𝐜𝐤𝐞𝐫 𝐁𝐚𝐬𝐢𝐜𝐬:
•🏁
•📦
•🔍
•🗑
•🏗
•🛑
•♻️
•💡
🐋 𝐃𝐨𝐜𝐤𝐞𝐫 𝐍𝐞𝐭𝐰𝐨𝐫𝐤𝐢𝐧𝐠:
•🌐
•🔗
•🛠
•🔄
📁 𝐃𝐨𝐜𝐤𝐞𝐫 𝐕𝐨𝐥𝐮𝐦𝐞𝐬:
•📂
•🔌
•🔄
•🗑
⚙️ 𝐃𝐨𝐜𝐤𝐞𝐫 𝐂𝐨𝐦𝐩𝐨𝐬𝐞:
•📋
•🗄
•🔧
•📊
•🔄
•📈
🔵 𝗙𝗼𝗹𝗹𝗼𝘄 @prodevopsguy 𝗳𝗼𝗿 𝗺𝗼𝗿𝗲 𝘀𝘂𝗰𝗵 𝗰𝗼𝗻𝘁𝗲𝗻𝘁 𝗮𝗿𝗼𝘂𝗻𝗱 𝗰𝗹𝗼𝘂𝗱 & 𝗗𝗲𝘃𝗢𝗽𝘀!!!
•
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.Please open Telegram to view this post
VIEW IN TELEGRAM
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.
1. Kubernetes
2. Helm
3. Operator
4. Prometheus
5. EKS
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 💬
Follow
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 𝗳𝗼𝗿 𝗺𝗼𝗿𝗲 𝘀𝘂𝗰𝗵 𝗰𝗼𝗻𝘁𝗲𝗻𝘁 𝗮𝗿𝗼𝘂𝗻𝗱 𝗰𝗹𝗼𝘂𝗱 & 𝗗𝗲𝘃𝗢𝗽𝘀!!!
Follow
Please open Telegram to view this post
VIEW IN TELEGRAM
https://harshhaa.hashnode.dev/devops-case-study-5-upi
Follow🍩 Like 👍 Share 👍 Comment Your thoughts 💬
✈️ 𝗙𝗼𝗹𝗹𝗼𝘄 @prodevopsguy 𝗳𝗼𝗿 𝗺𝗼𝗿𝗲 𝘀𝘂𝗰𝗵 𝗰𝗼𝗻𝘁𝗲𝗻𝘁 𝗮𝗿𝗼𝘂𝗻𝗱 𝗰𝗹𝗼𝘂𝗱 & 𝗗𝗲𝘃𝗢𝗽𝘀!!!
Follow
Please open Telegram to view this post
VIEW IN TELEGRAM
Cloud & DevOps Blogs and Stories
DevOps Case Study: 5 (UPI 💳)
UPI — Unified Payment Interface (UPI) is a real-time payment system developed by the National Payments Corporation of India (NPCI). It enables users to link their multiple bank accounts to a single mobile application and make cashless transactions be...
kubectl get pods --all-namespaces -o jsonpath="{.items[*].spec.containers[*].image}" | sort | uniq -c𝐏𝐫𝐨 𝐓𝐢𝐩: Mastering jsonpath with kubectl can unlock powerful ways to query and manipulate your Kubernetes resources directly from the command line.
Please open Telegram to view this post
VIEW IN TELEGRAM
1.
ls: List directory contents2.
cd: Change directory3.
pwd: Print working directory4.
mkdir: Create a directory5.
touch: Create a file6.
cp: Copy files and directories7.
mv: Move or rename files and directories8.
rm: Remove files and directories9.
find: Search for files and directories10.
grep: Search for patterns in files11.
cat: Concatenate and display files12.
less: View file contents page by page13.
head: Display the first lines of a file14.
tail: Display the last lines of a file15.
vi/vim: Text editor16.
nano: Text editor17.
tar: Archive and compress files18.
gzip: Compress files19.
gunzip: Decompress files20.
wget: Download files from the web21.
curl: Transfer data to or from a server22.
ssh: Secure shell remote login23.
scp: Securely copy files between hosts24.
chmod: Change file permissions25.
chown: Change file ownership26.
chgrp: Change group ownership27.
ps: Display running processes28.
top: Monitor system resources and processes29.
kill: Terminate processes30.
df: Display disk space usage31.
du: Estimate file and directory space usage32.
free: Display memory usage33.
uname: Print system information34.
ifconfig: Configure network interfaces35.
ping: Test network connectivity36.
netstat: Network statistics37.
iptables: Firewall administration38.
systemctl: Manage system services39.
journalctl: Query the system journal40.
crontab: Schedule cron jobs41.
useradd: Create a user account42.
passwd: Change user password43.
su: Switch user44.
sudo: Execute a command as another user45.
usermod: Modify user account46.
groupadd: Create a group47.
groupmod: Modify a group48.
id: Print user and group information49.
ssh-keygen: Generate SSH key pairs50.
rsync: Synchronize files and directories51.
diff: Compare files line by line52.
patch: Apply a patch to files53.
tar: Extract files from an archive54.
curl: Perform HTTP requests55.
nc: Netcat - networking utility56.
wget: Download files from the web57.
whois: Lookup domain registration details58.
dig: DNS lookup utility59.
sed: Stream editor for text manipulation60.
awk: Pattern scanning and processing language61.
sort: Sort lines in a text file62.
cut: Extract sections from lines of files63.
wc: Word, line, character, and byte count64.
tee: Redirect output to multiple files or commands65.
history: Command history66.
source: Execute commands from a file in the current shell67.
alias: Create command aliases68.
ln: Create links between files69.
uname: Print system information70.
lsof: List open files and processes71.
mkfs: Create a file system72.
mount: Mount a file system73.
umount: Unmount a file system74.
ssh-agent: Manage SSH keys in memory75.
grep: Search for patterns in files76.
tr: Translate characters77.
cut: Select portions of lines from files78.
paste: Merge lines of files79.
uniq: Report or omit repeated linesPlease open Telegram to view this post
VIEW IN TELEGRAM
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.
Please open Telegram to view this post
VIEW IN TELEGRAM