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 clicRun Workflow Only on Specific Folder Changes
github-actionsThis trigger configuration ensures the workflow runs only when files under the app/ directory change. It helps reduce unnecessary workflow executions and saves CI minutes.
on: { push: { paths: ["app/**"] } }
🔧 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 ARM Template via Azure DevOps Pipeline
azdoDeploys an ARM template as part of an Azure DevOps pipeline step.
powershell: az deployment group create --resource-group <RG> --template-file infra.json
GitHub Actions Workflow Trigger on Push
github-actionsConfigures a GitHub Actions workflow to trigger when changes are pushed to the main branch.
on:
push:
branches: ["main"]
Apply Kubernetes Manifest
kubernetesApplies a Kubernetes manifest to the target namespace.
kubectl apply -f deployment.yaml -n <NAMESPACE>
Get AKS Credentials
aksFetches kubeconfig credentials for interacting with an AKS cluster.
az aks get-credentials --resource-group <RG> --name <CLUSTER>
Install Helm Chart
helmInstalls a Helm chart into a Kubernetes namespace.
helm install <RELEASE> <CHART> --namespace <NAMESPACE>
Initialize Terraform Working Directory
terraformInitializes a Terraform directory by downloading providers and preparing the environment.
terraform init
Validate Terraform Configuration
terraformChecks Terraform configuration files for syntax and structural validity.
terraform validate
Run Ansible Playbook
ansibleExecutes an Ansible playbook against hosts defined in the inventory.
ansible-playbook -i inventory.yaml playbook.yaml
Build Docker Image
dockerBuilds a Docker image from a local Dockerfile.
docker build -t <IMAGE_NAME>:<TAG> .
Push Docker Image to Registry
dockerPushes a locally built Docker image to a remote container registry.
docker push <REGISTRY>/<IMAGE_NAME>:<TAG>
Restart Kubernetes Deployment
kubernetesForces a rolling restart of a Kubernetes deployment.
kubectl rollout restart deployment/<DEPLOYMENT> -n <NAMESPACE>
💡 Experiencia real
“Moved to Terraform modules and improved drift control.”