Labs

Cloud Computing, Cloud Native & Kubernetes by Rahul

Lab: Tip/Code sample Limit Communication Between Microservices with Kubernetes Network Policies

Aug 31, 2021 · 5 min read

🎁Special Giveaway@ManningBooks just launched Microservices in .NET, Second Edition by @chr_horsdal I am giving one away to my Tweeple ♥ Rules: 1. 👉🏻 Follow me 2. 🔃 Retweet this tweet#contest #giveaways #ebooks #dotnet #microservices pic.twitter.com/OWBc5wiMtM — Rahul Rai (@rahulrai_in) August 31, 2021 Security is an important concern for microservices applications. Although security is a broad topic, I want to zoom into a critical aspect: limiting communication between microservices. By default, microservices platforms such as Kubernetes allow unconstrained communication between services.

#azure#kubernetes

Read more of Limit Communication Between Microservices with Kubernetes Network Policies

Lab: Tip/Code sample Crosspost Tweets to LinkedIn with Power Automate

Jun 01, 2021 · 3 min read

Do you want your LinkedIn audience to know what you are up to on Twitter? Here’s how I have set up Power Automate to crosspost specific tweets to LinkedIn. What is Power Automate Power Automate is one of the products of the Microsoft Power Platform family. It is a web-based service that helps you create automated workflows between your favorite apps and services to synchronize files, get notifications, collect data, and more.

#azure#automation

Read more of Crosspost Tweets to LinkedIn with Power Automate

Lab: Tip/Code sample Practical Top-down Resource Monitoring of a Kubernetes Cluster with Metrics Server

May 15, 2021 · 7 min read

You might have previously used observability tools such as Prometheus, Azure Monitor, AWS Container Insight, or commercial products such as Logic Monitor to monitor your Kubernetes cluster. Let’s probe the Kubernetes magic that makes the beautiful CPU and memory dials tick on the monitoring dashboards. Kubernetes has a built-in Metrics API (see spec.) and a simple CLI query, kubectl top (documentation), that you can use to fetch a snapshot of the CPU and memory consumption of a Kubernetes object.

#kubernetes

Read more of Practical Top-down Resource Monitoring of a Kubernetes Cluster with Metrics Server

Lab: Tip/Code sample Managing GitHub Organizations with GitHub GraphQL API

Feb 18, 2021 · 6 min read

I prefer using GraphQL over REST APIs wherever available, primarily because I can avoid overfetching and underfetching data while still enjoying the benefits of contract-based development. For this exercise, assume that you are the DevOps lead of an organization/open-source community that uses GitHub to manage its projects under a GitHub Organization. GitHub Organizations are shared accounts consisting of members and projects with sophisticated security and administrative features. You have been asked to ensure that your organization’s repositories are healthy such that there are no PRs in an unmerged state for more than one week, and every issue is either resolved or updated in 12 hours.

#web#programming

Read more of Managing GitHub Organizations with GitHub GraphQL API

Lab: Tip/Code sample Serverless Visitor Counter Badge with Azure Functions

Nov 22, 2020 · 7 min read

We all love web badges. You might have spotted many of them in README of repositories, including the repository of my blog, The Cloud Blog. In general, web badges serve two purposes. They are visually appealing. They display key information instantly. If you scroll to my website’s footer section, you will find GitHub and Netlify badges that display the status of the latest build and deployment. I use them to quickly check whether everything is fine with the world without navigating to their dashboards.

#azure#compute

Read more of Serverless Visitor Counter Badge with Azure Functions

Lab: Tip/Code sample Generating Dynamic Open Graph Images with Azure Functions

Oct 08, 2020 · 6 min read

Open Graph (OG) tags allow you to control what content shows up when you share the webpage on major social media sites such as Facebook, Twitter, and Google. The essential Open Graph properties that you must configure in the <head> section of your webpage are the following. og:title: The title of your webpage. og:image: An image URL displayed as the thumbnail of your webpage when it is shared. The recommended dimension of this image is 1200px X 627 px.

#azure#compute

Read more of Generating Dynamic Open Graph Images with Azure Functions

Lab: Tip/Code sample Enable TLS on HTTP Triggered Function App in Kubernetes Using KEDA and NGINX

Sep 26, 2020 · 4 min read

With KEDA (Kubernetes-based Event-Driven Autoscaling), you can host Azure Functions on Kubernetes. KEDA allows you to scale pods based on configurable rules that rely on metrics from data sources such as Azure Queue. The Microsoft documentation outlines how you can use the Prometheus scaler to scale HTTP triggered Azure functions. However, it does not discuss the the security of the transport channel in detail. This quick tip will demonstrate how you can expose your HTTP triggered Azure Functions over TLS/SSL (HTTPS endpoint).

#azure#kubernetes

Read more of Enable TLS on HTTP Triggered Function App in Kubernetes Using KEDA and NGINX

Lab: Tip/Code sample No Code Incident Management System with Azure Logic Apps

Sep 06, 2020 · 8 min read

In this lab, we will create an Azure Logic App that monitors Twitter, analyzes the sentiment of customer tweets with Text Analytics v2 service, and creates incidents in Pager Duty. PagerDuty is an incident management platform that provides reliable notifications, automatic escalations, on-call scheduling, and other functionality to help teams detect and fix problems quickly. This application can help customer service agents react swiftly to customer complaints and avoid brand reputation damages.

#azure#integration

Read more of No Code Incident Management System with Azure Logic Apps