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 clicDisable Public Access to AKS API Server
azure-cliRestricts the AKS API server to only the specified IP ranges, reducing exposure to the public internet. This helps prevent unauthorized access attempts.
az aks update --resource-group <RESOURCE_GROUP> --name <AKS_CLUSTER> --api-server-authorized-ip-ranges <ALLOWED_IP_1>,<ALLOWED_IP_2>
🔧 Consejos de hoy
10 elementosCreate Azure Resource Group
azure-cliCreates a new Azure resource group in the specified location.
az group create -n <RG> -l <LOCATION>
Deploy ARM Template
azure-cliDeploys an ARM template to a chosen resource group.
az deployment group create -g <RG> -f template.json
Create Azure DevOps Variable Group
azdoCreates a variable group in Azure DevOps with initial variables.
az pipelines variable-group create --name <NAME> --project <PROJECT> --variables key=value
Run GitHub Actions Workflow Manually
github-actionsTriggers a GitHub Actions workflow on the main branch.
gh workflow run <WORKFLOW_NAME> --ref main
Build Docker Image
dockerBuilds a Docker image from the current directory.
docker build -t <IMAGE_NAME>:latest .
Push Docker Image to Registry
dockerUploads a Docker image to a container registry.
docker push <REGISTRY>/<IMAGE_NAME>:latest
Apply Terraform Configuration
terraformApplies Terraform configuration without interactive approval.
terraform apply -auto-approve
Initialize Terraform Backend
terraformInitializes Terraform modules and backend configuration.
terraform init
Apply Kubernetes Manifest
kubernetesDeploys or updates Kubernetes resources using a manifest file.
kubectl apply -f deployment.yaml -n <NAMESPACE>
Connect to AKS Cluster
aksAdds AKS cluster credentials to the kubeconfig for access.
az aks get-credentials -g <RG> -n <CLUSTER>
Install Helm Chart
helmInstalls a Helm chart into the specified Kubernetes namespace.
helm install <RELEASE> <CHART> -n <NAMESPACE>
Run Ansible Playbook
ansibleExecutes an Ansible playbook using an inventory file.
ansible-playbook -i inventory.yaml playbook.yaml
💡 Experiencia real
“Standardized AKS namespaces + RBAC templates.”