Conocimiento diario de Cloud y DevOps
Azure · Azure DevOps · GitHub Actions · Ansible · Kubernetes · AKS · Terraform · Helm · CI/CD
⭐ Consejo destacado
Copiá y compartí con un clicSet Azure Subscription in Terraform
terraformSets the active Azure subscription so Terraform can authenticate and deploy to the correct environment. Run this before terraform init/plan/apply to avoid accidental deployments.
az account set --subscription <SUBSCRIPTION_ID>
🔧 Consejos de hoy
10 elementosCreate Azure Resource Group
azure-cliCreates a new Azure Resource Group in the specified region.
az group create --name <RG> --location <LOCATION>
Deploy AKS Cluster
azure-cliDeploys a production-ready AKS cluster with three nodes.
az aks create --resource-group <RG> --name <CLUSTER> --node-count 3 --generate-ssh-keys
Apply Kubernetes Manifest
kubernetesApplies a Kubernetes manifest to the target namespace.
kubectl apply -f deployment.yaml -n <NAMESPACE>
Install Helm Chart
helmInstalls a Helm chart into the specified Kubernetes namespace.
helm install <RELEASE> <CHART> -n <NAMESPACE>
Run Terraform Plan
terraformGenerates and displays the Terraform execution plan using a variable file.
terraform plan -var-file=vars.tfvars
Apply Terraform Changes
terraformApplies infrastructure changes without requiring interactive approval.
terraform apply -auto-approve
Build Docker Image
dockerBuilds a Docker image from the current directory context.
docker build -t <IMAGE>:<TAG> .
Push Docker Image
dockerPushes a Docker image to a container registry.
docker push <IMAGE>:<TAG>
Run Ansible Playbook
ansibleExecutes an Ansible playbook using the specified inventory.
ansible-playbook -i inventory.ini playbook.yaml
Trigger Azure DevOps Pipeline
azdoManually triggers an Azure DevOps pipeline run.
az pipelines run --name <PIPELINE>
Run GitHub Actions Workflow Dispatch
github-actionsTriggers a GitHub Actions workflow using the CLI.
gh workflow run <WORKFLOW_FILE> --ref main
Restart Kubernetes Deployment
kubernetesForces a restart of a Kubernetes deployment to pick up new configuration or secrets.
kubectl rollout restart deployment <DEPLOYMENT> -n <NAMESPACE>
💡 Experiencia real
“Moved to Terraform modules and improved drift control.”