Skip to main content

azure

GitOps: Deploying apps in Azure Kubernetes Service (AKS) with Flux
·312 words·2 mins
azure kubernetes devops git gitops aks flux
Recently I learned about GitOps which is a way to manage your Kubernetes clusters and the applications you run on top using Git. The idea is that you can declaratively describe the desired state of your systems in Git and roll out changes as soon as merges occur. You can immediately see the main benefits of such an approach: Your Git repositories become the single source of truth for both your infrastructure and application code, allowing the teams to increase productivity and stability (you get the Git log to audit changes).
Kured: Restart your Azure Kubernetes Service Nodes
·278 words·2 mins
azure kubernetes devops aks kured
Two weeks ago I got an email message from Microsoft Azure explaining that Azure Kubernetes Services had been patched but that I had to restart my nodes (reboot the clusters) to complete the operation. The first thing you need to know is that, when things like this happens, the Azure platform creates a file called /var/run/reboot-required in each of the nodes of your cluster.
Webcast - Azure Summer Ask the Experts
azure kubernetes aks microservices
Visual Studio Code Remote Containers: Azure Blockchain
·390 words·2 mins
azure devops blockchain truffle ganache nodejs ethereum visual studio code
After collaborating with the Azure Ansible container I decided to also develop a Developer Container for those who want or need to use the Azure Blockchain Development Kit for Ethereum to create smart contracts, taking away the burden of installing Python, Truffle, Ganache and NodeJS on your machine. Once again I collaborated with Chuck Lantz and the container definition resulted in the following two files:
Visual Studio Code Remote Containers: Azure Ansible
·558 words·3 mins
azure devops ansible visual studio code
Last year I was working on a project for deploying Azure services using Ansible, and let me tell you something: Back then a feature like Visual Studio Remote Containers would have helped us so much! Why? Because just installing Visual Studio Code, the Remote Development Extension Pack, and Docker you have a killer combo that makes it possible to create a Development environment in a snap and share it with your source code.
ARM: Enable Container Monitoring Solution on an existing Log Analytics Workspace
·99 words·1 min
azure arm log analytics
Recently I had to update a bunch of Log Analytics Workspaces resources to enable the Container Monitoring Solution. So I came up with this ARM Template that I want to share with you: { "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", "contentVersion": "1.0.0.0", "parameters": { "LogAnalyticsWorkspaceName": { "type": "string", "metadata": { "description": "Log Analytics Workspace name" } } }, "variables": { "workspaceResourceId": "[resourceId('Microsoft.OperationalInsights/workspaces/', parameters('LogAnalyticsWorkspaceName'))]", "containerSolutionName": "[concat(parameters('LogAnalyticsWorkspaceName'), '-containers')]" }, "resources": [ { "type": "Microsoft.OperationsManagement/solutions", "apiVersion": "2015-11-01-preview", "name": "[variables('containerSolutionName')]", "location": "[resourceGroup().location]", "plan": { "name": "[variables('containerSolutionName')]", "product": "[concat('OMSGallery/', 'ContainerInsights')]", "promotionCode": "", "publisher": "Microsoft" }, "properties": { "workspaceResourceId": "[variables('workspaceResourceId')]" } } ], "outputs": {} } Hope it helps!
Global Online Azure Bootcamp - Mission: Azure Kuberentes Service
azure kubernetes aks microservices
Global Azure Bootcamp Madrid - Mission: Azure Kuberentes Service
azure kubernetes aks microservices
Running the Global Azure Bootcamp Science Lab in Kubernetes
·73 words·1 min
kubernetes azure aks global azure
Next Saturday the Global Azure Bootcamp will be celebrated all over the world and as in previous years their will be a Science Lab where we’ll try to discover a planet!!!. Isn’t that cool? Well to make this fast you can run the Science Lab using Azure Container Instances following the instructions found here or you can use the following gist to run the workload in an existing kubernetes cluster:
AKS & Application Gateway: Expose more than one service in an ingress resource
·155 words·1 min
kubernetes azure aks application gateway waf ingress
If you install the Azure Application Gateway Ingress Controller for your AKS clusters you may want to expose more than one service through the same Public IP just changing the url path. In order to make this work you must use the backend-path-prefix annotation. In the following sample I create an ingress with the following behavior:
AKS: Persistent Volume with existing Storage Account
·457 words·3 mins
kubernetes azure aks storage account persistent volume persistent volume claim storage class
In order to deploy a Persistent Volume in your AKS cluster using an existing Storage Account you should take the following steps: Create a Storage Class with a reference to the Storage Account. Create a Secret with the credentials used to access the Storage Account. Create a Persistent Volume with a reference to the Storage Class, the secret and the File Share. Create a Persistent Volume Claim with a reference to the volume by name. Use the following yaml as a template for the resources described above. Save the contents as aks-existing-storage-account-pv.yaml:
Meetup MadridDotNet - El estado del ecosistema del desarrollador por @cmendibl3
azure kubernetes aks microservices
Kubernetes: Mount a file in your Pod using a ConfigMap
·275 words·2 mins
kubernetes azure config map volume
Lately I’ve been learning Go and this week I started a side project named kube-sherlock. The purpose of this small program is to list any pod that does not have the labels that your organization requires. For kube-sherlock I created a dockerfile were both the program (kube-sherlock) and the default configuration (config.yaml) are placed in the app folder:
NetConf Barcelona - Decoupling your Application with .NET Core, Azure and Events
dotnet azure eventhubs kafka pubsub
AKS: Configure TLS termination with the http application routing addon
·225 words·2 mins
kubernetes azure aks nginx ingress controller
When you install a AKS cluster you can configure it to deploy the http application routing addon or you you can update an existing cluster to deploy it. Either way you end up with an NGINX Ingress Controller running, in the kube-system namespace of your cluster, with the following properties: ingress-class: addon-http-application-routing annotations-prefix: nginx.ingress.kubernetes.io Does this means that you can use this controller for TLS termination? The answer is yes! And you can also use rate limits, and whitelisting as described in my post Secure your Kubernetes services with NGINX ingress controller, tls and more.
Prepare yourself to work in Cloud
·700 words·4 mins
azure cloud
Nowadays it’s clear that IT trends such as serverless computing, containerization, cloud native apps, DevOps artificial intelligence, machine learning and both hybrid and multi-cloud solutions are becoming main stream or the “new normal”. All businesses, big or small, are looking for cloud experts with key skills in many of these hot trends. With serverless architectures, applications are separated into various individual functions which are triggered by different types of events. This changes the way we normally think about applications and also the way we must approach operations in terms of monitoring performance, tracing, scaling and high availability. Good knowledge of AWS Lambda, Azure Functions, Google Cloud Functions, and event-driven architectures are skills employers will be looking for.
Develop and build ASP.NET Core applications to run on Kubernetes with Draft
·385 words·2 mins
dotnet kubernetes azure aks azure container registry aspnetcore
You start developing an ASP.NET Core application to run it in Kubernetes and suddenly you find yourself creating a docker file, building an image, pushing the image to a registry, creating both a deployment and a service definition for Kubernetes and you wonder if there is a tool out there to help you streamline the whole process.
Deploying Elastic Search, Fluentd, Kibana on AKS with Helm
·117 words·1 min
kubernetes azure aks elastic search kibana fluentd
For my recent talk at .NET Conf Madrid I managed to install Elastic Search, Fluentd and Kibana (EFK) as a logging solution for the AKS cluster I used in my demos. The fact is that such deployment was possible thanks to Tim Park and his post Logging with Fluentd, ElasticSearch, and Kibana (EFK) on Kubernetes on Azure where I learned that to effectively deploy EFK on AKS I would have to tweak the resource definitions found in the Kubernetes project.
Accepting Azure Marketplace Terms with Ansible
·243 words·2 mins
azure devops ansible
Last May I wrote: Accepting Azure Marketplace Terms with Azure CLI and this time we’ll accomplish the same task with Ansible. Turns out that Ansible 2.6 comes with a handy new module: azure_rm_resource which lets you create, update or delete any Azure resource using Azure REST API. So I decided to take it for a test drive with the “Accepting Terms” sample.
Installing Azure CLI and Ansible on Ubuntu
·226 words·2 mins
azure devops ansible azure cli
I’ve been using Ansible and the Azure CLI every single day for the last 3 months. Non stop work editing playbooks and scripts with Visual Studio Code and running them on Ubuntu (WSL) on my Windows 10 machine. Turns out that because Ansible uses python version 2.7.12 and the Azure CLI uses python 3.6.5 you can make a mess if you get “creative” trying to install the tools instead of using the recommended commands: