1.
terraform init: Initializes a working directory containing Terraform configuration files.2.
terraform plan: Generates an execution plan, outlining actions Terraform will take.3.
terraform apply: Applies the changes described in the Terraform configuration.4.
terraform destroy: Destroys all resources described in the Terraform configuration.5.
terraform validate: Checks the syntax and validity of Terraform configuration files.6.
terraform refresh: Updates the state file against real resources in the provider.7.
terraform output: Displays the output values from the Terraform state.8.
terraform state list: Lists resources within the Terraform state.9.
terraform show: Displays a human-readable output of the current state or a specific resource's state.10.
terraform import: Imports existing infrastructure into Terraform state.11.
terraform fmt: Rewrites Terraform configuration files to a canonical format.12.
terraform graph: Generates a visual representation of the Terraform dependency graph.13.
terraform providers: Prints a tree of the providers used in the configuration.14.
terraform workspace list: Lists available workspaces.15.
terraform workspace select: Switches to another existing workspace.16.
terraform workspace new: Creates a new workspace.17.
terraform workspace delete: Deletes an existing workspace.18.
terraform output: Retrieves output values from a module.19.
terraform state mv: Moves an item in the state.20.
terraform state pull: Pulls the state from a remote backend.21.
terraform state push: Pushes the state to a remote backend.22.
terraform state rm: Removes items from the state.23.
terraform taint: Manually marks a resource for recreation.24.
terraform untaint: Removes the 'tainted' state from a resource.25.
terraform login: Saves credentials for Terraform Cloud.26.
terraform logout: Removes credentials for Terraform Cloud.27.
terraform force-unlock: Releases a locked state.28.
terraform import: Imports existing infrastructure into your Terraform state.29.
terraform plan -out: Saves the generated plan to a file.30.
terraform apply -auto-approve: Automatically applies changes without requiring approval.31.
terraform apply -target=resource: Applies changes only to a specific resource.32.
terraform destroy -target=resource: Destroys a specific resource.33.
terraform apply -var="key=value": Sets a variable's value directly in the command line.34.
terraform apply -var-file=filename.tfvars: Specifies a file containing variable definitions.35.
terraform apply -var-file=filename.auto.tfvars: Automatically loads variables from a file.Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
This guide will cover everything required to deploy an example Azure Service Bus instance via Terraform and ADO.
Please open Telegram to view this post
VIEW IN TELEGRAM
↳ In GitOps world everyone is aware about the ArgoCD.
It's has tremendous features due to which its first choice of almost every DevOps engineer.
1. 𝗔𝘂𝘁𝗼𝗺𝗮𝘁𝗲𝗱 𝗱𝗲𝗽𝗹𝗼𝘆𝗺𝗲𝗻𝘁 of applications to specified target environment in multiple clusters
Support for multiple config management/templating tools-->
• Kustomize
• Helm
• Ksonnet
• Jsonnet
• Plain-YAML
2. 𝗦𝗦𝗢 𝗜𝗻𝘁𝗲𝗴𝗿𝗮𝘁𝗶𝗼𝗻 :
• OIDC
• OAuth2
• LDAP
• SAML 2.0
• GitHub
• GitLab
• Microsoft
3. 𝗠𝘂𝗹𝘁𝗶-𝘁𝗲𝗻𝗮𝗻𝗰𝘆 𝗮𝗻𝗱 𝗥𝗕𝗔𝗖 policies for authorization
4. 𝗥𝗼𝗹𝗹𝗯𝗮𝗰𝗸/𝗥𝗼𝗹𝗹-𝗮𝗻𝘆𝘄𝗵𝗲𝗿𝗲 to any application configuration committed in Git repository.
• Health status analysis of application resources
5. 𝗔𝘂𝘁𝗼𝗺𝗮𝘁𝗲𝗱 𝗰𝗼𝗻𝗳𝗶𝗴𝘂𝗿𝗮𝘁𝗶𝗼𝗻 𝗱𝗿𝗶𝗳𝘁 detection and visualization
6. Out-of-the-box Prometheus metrics
7. Audit trails for application events and API calls
8. PreSync, Sync, PostSync hooks:
• Support complex application rollouts
-> blue/green
-> canary upgrades
9. Web-hook integration
-> GitHub
-> BitBucket
-> GitLab
10. CLI and access tokens for automation and Cl integration
11. Web UI which provides real-time view of application activity
12. Automated or manual syncing of applications to its desired state
Please open Telegram to view this post
VIEW IN TELEGRAM
❤2
Here are some common GitHub-related issues that DevOps engineers encounter, along with their solutions:
1️⃣ . Merge Conflicts:
Issue: When multiple contributors modify the same file simultaneously, merge conflicts occur during pull requests.
Solution: Resolve conflicts by carefully reviewing conflicting changes and manually merging them.
2️⃣ . Authentication Issues:
Issue: Improper authentication (SSH keys or personal access tokens) can lead to problems when pushing or pulling from repositories.
Solution: Ensure correct authentication methods to avoid issues.
3️⃣ . Git Submodules:
Issue: Managing Git submodules can be challenging.
Solution: Understand how submodules work and handle them correctly.
4️⃣ . Large Files and LFS:
Issue: GitHub has a file size limit. Large binary files can cause issues.
Solution: Use Git LFS (Large File Storage) for managing large files.
5️⃣ . Branch Protection Rules:
Issue: Accidental force pushes or direct commits to protected branches.
Solution: Set up branch protection rules to prevent such actions.
6️⃣ . Rate Limiting:
Issue: GitHub API requests are rate-limited.
Solution: Use tokens and avoid excessive requests.
7️⃣ . Repository Permissions:
Issue: Incorrect permissions for collaborators.
Solution: Ensure proper permissions to avoid unauthorized access.
8️⃣ . Webhooks and CI/CD Failures:
Issue: Debugging webhook and CI/CD failures.
Solution: Check logs and configurations to identify and fix issues.
📱 𝗙𝗼𝗹𝗹𝗼𝘄 @devcloudninjas 𝐟𝐨𝐫 𝐦𝐨𝐫𝐞 𝐬𝐮𝐜𝐡 𝐜𝐨𝐧𝐭𝐞𝐧𝐭 𝐚𝐫𝐨𝐮𝐧𝐝 𝐜𝐥𝐨𝐮𝐝 & 𝐃𝐞𝐯𝐎𝐩𝐬!!! // 𝐉𝐨𝐢𝐧 𝐟𝐨𝐫 𝐃𝐞𝐯𝐎𝐩𝐬 𝐃𝐎𝐂𝐬: @devcloudninjas
Issue: When multiple contributors modify the same file simultaneously, merge conflicts occur during pull requests.
Solution: Resolve conflicts by carefully reviewing conflicting changes and manually merging them.
Issue: Improper authentication (SSH keys or personal access tokens) can lead to problems when pushing or pulling from repositories.
Solution: Ensure correct authentication methods to avoid issues.
Issue: Managing Git submodules can be challenging.
Solution: Understand how submodules work and handle them correctly.
Issue: GitHub has a file size limit. Large binary files can cause issues.
Solution: Use Git LFS (Large File Storage) for managing large files.
Issue: Accidental force pushes or direct commits to protected branches.
Solution: Set up branch protection rules to prevent such actions.
Issue: GitHub API requests are rate-limited.
Solution: Use tokens and avoid excessive requests.
Issue: Incorrect permissions for collaborators.
Solution: Ensure proper permissions to avoid unauthorized access.
Issue: Debugging webhook and CI/CD failures.
Solution: Check logs and configurations to identify and fix issues.
Remember, addressing these challenges will enhance your DevOps skills!😊 🚀
Please open Telegram to view this post
VIEW IN TELEGRAM
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
If you’re into DevOps, Kubernetes, or CI/CD Pipelines, this is for you!
Check out the repo, explore the code, and feel free to reach out if you have any questions. Let's discuss and collaborate!🙌
📣 Note: Fork this Repository🧑💻 for upcoming future projects, Every week releases new Project.
Please open Telegram to view this post
VIEW IN TELEGRAM
1_9CvhrnA6Fg1LTmMjr3n3Kg.gif
1.2 MB
If you’re into DevOps, Kubernetes, or CI/CD Pipelines, this is for you!
Check out the repo, explore the code, and feel free to reach out if you have any questions. Let's discuss and collaborate!🙌
📣 Note: Fork this Repository🧑💻 for upcoming future projects, Every week releases new Project.
Please open Telegram to view this post
VIEW IN TELEGRAM
Cloud computing is revolutionizing the tech industry, and if you’re an aspiring Cloud Engineer, mastering these key skills will help you stay ahead! Let’s break it down:
Please open Telegram to view this post
VIEW IN TELEGRAM
👍1
To demonstrate Blue-Green deployment, we’ll use AWS ECS to host our Swiggy-clone application. ECS is a highly scalable container orchestration service provided by AWS.
AWS CodePipeline is a fully managed continuous integration and continuous delivery (CI/CD) service that automates the build, test, and deployment phases of your release process. Let’s see how to set up a Blue-Green deployment pipeline using AWS CodePipeline:
📣 Note: Fork this Repository🧑💻 for upcoming future projects, Every week releases new Project.
Please open Telegram to view this post
VIEW IN TELEGRAM
Struggling to prepare for your DevOps interview?
Check out my latest in-depth guide: "How to Crack a DevOps Interview in One Attempt: A Complete Guide for Freshers and Experienced"
- Essential DevOps skills & tools
- Common interview questions with expert tips
- Hands-on preparation strategies to land your dream job
Please open Telegram to view this post
VIEW IN TELEGRAM
DEV Community
How to Crack a DevOps Interview in One Attempt: A Complete Guide for Freshers and Experienced
Cracking a DevOps interview can be challenging for both freshers and experienced engineers. This...
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1👍1👏1
Efficient GitHub branching strategies can be a game-changer for your CI/CD pipeline and overall workflow. Let's explore some key strategies that can streamline your development process:
1. Main Branch (main/master): The production-ready branch. All code here should be stable and tested.
2. Feature Branches: Branch off from the main branch to work on new features. Keep them short-lived and merge back to main once complete and reviewed.
3. Release Branches: Create these when you're preparing a new release. They allow for final bug fixes and polishing before merging into the main branch.
4. Hotfix Branches: For urgent fixes on the production code. These branches are crucial for quick and isolated bug fixes.
5. Development Branch (develop): An optional branch that serves as an integration branch for features. This is where ongoing development happens before merging into the main branch.
6. Epic Branches: For larger projects, an epic branch can group related feature branches. It helps in managing complex development work.
feature/login-page, hotfix/payment-bug).Please open Telegram to view this post
VIEW IN TELEGRAM
👍1
13 𝐦𝐨𝐬𝐭 𝐜𝐨𝐦𝐦𝐨𝐧𝐥𝐲 𝐮𝐬𝐞𝐝 𝐜𝐨𝐦𝐦𝐚𝐧𝐝 𝐟𝐨𝐫 𝐊𝐮𝐛𝐞𝐫𝐧𝐞𝐭𝐞𝐬 🎯
Here are 13 of the most commonly used kubectl commands for managing a real production Kubernetes environment, along with explanations and common use cases:
✅ 𝐂𝐨𝐫𝐞 𝐌𝐚𝐧𝐚𝐠𝐞𝐦𝐞𝐧𝐭
#1 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐠𝐞𝐭
→
→
→
→
#2 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐝𝐞𝐬𝐜𝐫𝐢𝐛𝐞
→
→
#3 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐜𝐫𝐞𝐚𝐭𝐞
→ kubectl create -f my-deployment.yaml
#4 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐚𝐩𝐩𝐥𝐲
→
#5 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐝𝐞𝐥𝐞𝐭𝐞
→
→
✅ Debugging and Troubleshooting
#6 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐥𝐨𝐠𝐬
→
→
#7 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐞𝐱𝐞𝐜
→
#8 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐩𝐨𝐫𝐭-𝐟𝐨𝐫𝐰𝐚𝐫𝐝
→
#9 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐭𝐨𝐩
→
→
#10 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐞𝐱𝐩𝐥𝐚𝐢𝐧
→
→
✅ Managing Workloads
#11 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐫𝐨𝐥𝐥𝐨𝐮𝐭
→
→
#12 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐬𝐜𝐚𝐥𝐞
→
#13 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐞𝐝𝐢𝐭
→
⚡️ 𝐅𝐨𝐥𝐥𝐨𝐰 @devcloudninjas 𝐟𝐨𝐫 𝐦𝐨𝐫𝐞 𝐬𝐮𝐜𝐡 𝐜𝐨𝐧𝐭𝐞𝐧𝐭 𝐚𝐫𝐨𝐮𝐧𝐝 𝐜𝐥𝐨𝐮𝐝 & 𝐃𝐞𝐯𝐎𝐩𝐬!!! // 𝐉𝐨𝐢𝐧 𝐟𝐨𝐫 𝐃𝐞𝐯𝐎𝐩𝐬 𝐃𝐎𝐂𝐬: @devcloudninjas
Here are 13 of the most commonly used kubectl commands for managing a real production Kubernetes environment, along with explanations and common use cases:
#1 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐠𝐞𝐭
→
kubectl get pods (list pods)→
kubectl get deployments (list deployments)→
kubectl get services (list services)→
kubectl get all (list most resources in a namespace)#2 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐝𝐞𝐬𝐜𝐫𝐢𝐛𝐞
→
kubectl describe pod my-pod→
kubectl describe node my-node#3 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐜𝐫𝐞𝐚𝐭𝐞
→ kubectl create -f my-deployment.yaml
#4 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐚𝐩𝐩𝐥𝐲
→
kubectl apply -f my-deployment.yaml (apply a deployment definition)#5 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐝𝐞𝐥𝐞𝐭𝐞
→
kubectl delete pod my-pod→
kubectl delete service my-service#6 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐥𝐨𝐠𝐬
→
kubectl logs my-pod→
kubectl logs my-pod -c my-container (specify a container)#7 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐞𝐱𝐞𝐜
→
kubectl exec -it my-pod -- bash (interactive shell)#8 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐩𝐨𝐫𝐭-𝐟𝐨𝐫𝐰𝐚𝐫𝐝
→
kubectl port-forward my-pod 8080:80#9 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐭𝐨𝐩
→
kubectl top pod (pod resource usage) →
kubectl top node (node resource usage)#10 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐞𝐱𝐩𝐥𝐚𝐢𝐧
→
kubectl explain pod →
kubectl explain pod.spec (more specific)#11 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐫𝐨𝐥𝐥𝐨𝐮𝐭
→
kubectl rollout status deployment/my-deployment →
kubectl rollout undo deployment/my-deployment
#12 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐬𝐜𝐚𝐥𝐞
→
kubectl scale deployment/my-deployment --replicas=5#13 𝐤𝐮𝐛𝐞𝐜𝐭𝐥 𝐞𝐝𝐢𝐭
→
kubectl edit deployment my-deploymentPlease open Telegram to view this post
VIEW IN TELEGRAM
❤2
1712476913889.gif
171.8 KB
𝟏 . 𝐂𝐨𝐧𝐭𝐢𝐧𝐮𝐨𝐮𝐬 𝐈𝐧𝐭𝐞𝐠𝐫𝐚𝐭𝐢𝐨𝐧.
----------------------------------------------------------------------------------
𝟐. 𝐂𝐨𝐧𝐭𝐢𝐧𝐮𝐨𝐮𝐬 𝐃𝐞𝐩𝐥𝐨𝐲𝐦𝐞𝐧𝐭
----------------------------------------------------------------------------------
Please open Telegram to view this post
VIEW IN TELEGRAM
👍2
A Dockerfile is essentially a set of instructions that Docker follows to build a Docker image. These instructions specify what operating system to use, what software packages to install, what files to copy into the container, what environment variables to set, and what commands to run when the container starts.
Please open Telegram to view this post
VIEW IN TELEGRAM
👍1
The right tools make teams more productive, applications more resilient, and organizations more innovative.
Here are some of the most impactful DevOps tools I recommend learning in
I aim to provide actionable insights on leading tools so you can advance your skills efficiently.
Please open Telegram to view this post
VIEW IN TELEGRAM
❤1👍1
Here are the main Azure CLI command groups:
1. Account
-
-
-
-
-
2. AD
-
-
-
-
-
3. Advisor
-
-
4. Aks
-
-
-
-
-
-
-
-
-
5. Api
-
-
-
-
-
-
6. Appconfig
-
-
-
-
-
-
7. Appservice
-
-
-
-
-
-
8. Backup
-
-
-
-
-
-
-
-
9. Batch
-
-
-
-
-
-
-
10. Billing
-
-
-
-
-
-
-
...and many more! You can use
Some other commonly used Azure CLI commands include:
-
-
-
-
-
📱 𝐅𝐨𝐥𝐥𝐨𝐰 @devcloudninjas 𝐟𝐨𝐫 𝐦𝐨𝐫𝐞 𝐬𝐮𝐜𝐡 𝐜𝐨𝐧𝐭𝐞𝐧𝐭 𝐚𝐫𝐨𝐮𝐧𝐝 𝐜𝐥𝐨𝐮𝐝 & 𝐃𝐞𝐯𝐎𝐩𝐬!!! // 𝐉𝐨𝐢𝐧 𝐟𝐨𝐫 𝐃𝐞𝐯𝐎𝐩𝐬 𝐃𝐎𝐂𝐬: @devcloudninjas
1. Account
-
az account-
az account clear-
az account list-
az account show-
az account set2. AD
-
az ad-
az ad app-
az ad group-
az ad sp-
az ad user3. Advisor
-
az advisor-
az advisor recommendation4. Aks
-
az aks-
az aks browse-
az aks create-
az aks delete-
az aks get-credentials-
az aks list-
az aks scale-
az aks show-
az aks update5. Api
-
az api-
az api create-
az api delete-
az api list-
az api show-
az api update6. Appconfig
-
az appconfig-
az appconfig create-
az appconfig delete-
az appconfig list-
az appconfig show-
az appconfig update7. Appservice
-
az appservice-
az appservice create-
az appservice delete-
az appservice list-
az appservice show-
az appservice update8. Backup
-
az backup-
az backup container-
az backup item-
az backup job-
az backup policy-
az backup protected-item-
az backup recovery-point-
az backup vault9. Batch
-
az batch-
az batch account-
az batch application-
az batch certificate-
az batch job-
az batch node-
az batch pool10. Billing
-
az billing-
az billing account-
az billing enrollment-account-
az billing invoice-
az billing period-
az billing profile-
az billing subscription...and many more! You can use
az --help to explore more command groups and commands.Some other commonly used Azure CLI commands include:
-
az group: Manage resource groups-
az resource: Manage resources-
az storage: Manage storage accounts-
az vm: Manage virtual machines-
az network: Manage network resourcesRemember to use az --help to get more information about each command and its usagePlease open Telegram to view this post
VIEW IN TELEGRAM
- All Kubernetes Content
- Kubernetes Realtime scenarios
- All Kubernetes Exercises with solutions
- No More AWS PDFs needed
- Easy to Learn from anywhere
- Detailed Explanation guide
- All Kubernetes Tricks & Techniques for DevOps guy
- Added Certified Kubernetes Administrator (CKA) Notes
- All Kubernetes Realtime examples included
Please open Telegram to view this post
VIEW IN TELEGRAM
👍2