AZ CLI Script to Create a Starter AKS Demo

The following is a bash script with a set of Azure CLI commands to build an cost efficient Azure Kubernetes Environment to host a public facing web application. This is suitable for beginners or a simple development environment for your project. And demonstrates my recommended setup with both Azure cloud resources and the Open Source …

Continue reading AZ CLI Script to Create a Starter AKS Demo

How to Reset Ubuntu Password in Windows WSL

Background You have a Windows 10 environment with WSL installed and are using a Ubuntu distribution. You forgot the password that was setup when you first setup Ubuntu. You need the password when you install software such as when doing apt install <software>. So here's how: Open windows command prompt. wsl --user root 2. Change …

Continue reading How to Reset Ubuntu Password in Windows WSL

Comprehensive Guide To Create an Azure Kubernetes Service with Az CLI

Objective: To provide key configuration parameters for the beginner when creating the Azure Kubernetes Service with Azure CLI. My design with related az aks create command configuration parameters. You can find the az aks create command’s documentation provides a list of about 60 parameters. az aks create --name --resource-group [--aad-admin-group-object-ids] [--aad-client-app-id] [--aad-server-app-id] [--aad-server-app-secret] [--aad-tenant-id] [--admin-username] …

Continue reading Comprehensive Guide To Create an Azure Kubernetes Service with Az CLI

Azure Portal Azure Kubernetes Resource Viewer vs Kubernetes Dashboard

As announced, in this article Kubernetes resource view is in public preview, I will review and give my thoughts on this new feature Kubernetes Resource View in the Azure Portal compared to the OSS Kubernetes Dashboard (Web UI). A prerequisite is that the AKS Cluster needs to be enable Azure AD integration. The biggest convenience …

Continue reading Azure Portal Azure Kubernetes Resource Viewer vs Kubernetes Dashboard

Kubernetes Error & Fix: clusterroles.rbac.authorization.k8s.io is forbidden: User clusterUser cannot list resource clusterroles

Issue Background: With an Azure Kubernetes Service deployment (version 1.17.9) in my dev environment, I launch the Kubernetes Dashboard application and I can’t see any Kubernetes resources and I get the following error notification clusterroles.rbac.authorization.k8s.io is forbidden: User "clusterUser" cannot list resource "clusterroles" in API group "rbac.authorization.k8s.io" at the cluster scope I am attempting to …

Continue reading Kubernetes Error & Fix: clusterroles.rbac.authorization.k8s.io is forbidden: User clusterUser cannot list resource clusterroles

Error & Fix: Azure Kubernetes ‘Failed to pull image’

Error Message: Failed to pull image "rkaks/dotnetcoresqldb:dev": rpc error: code = Unknown desc = Error response from daemon: pull access denied for rkaks/dotnetcoresqldb, repository does not exist or may require 'docker login': denied: requested access to the resource is denied Shown from the Kubernetes Dashboard application Context I have my application's docker image pushed into …

Continue reading Error & Fix: Azure Kubernetes ‘Failed to pull image’

Database Patterns with Azure Kubernetes Service Part 2: Azure SQL DB and Managed Identity

My Blog Post: An ASP .NET Core app hosted in Azure Kubernetes Service (AKS) that is accessing an Azure SQL Database using Azure AD Managed Identity. The benefit is the ability for the application code not to use conventional SQL credentials of username and password stored in configuration files. Also, not use Azure Key vault to retrieve any user name and password credentials. There is nothing wrong with these techniques, but using Managed Identity is more streamlined and is a security best practice. #AKS #Kubernetes #Security #managedidentity #azureAD #AzureSQL

Database Patterns with Azure Kubernetes Service Part 1: MySQL + Azure Managed Disk

One of the non-straight forward aspects of implementing for applications in Kubernetes is the stateful data store. I will be showing 2 relational database patterns in Azure Kubernetes Service. Since containers are the fundamental building blocks, these are stateless by default. That is the containers can lose its data when it is terminated or fail. …

Continue reading Database Patterns with Azure Kubernetes Service Part 1: MySQL + Azure Managed Disk

Walk-through of Data Migration Assistant with Azure SQL DB

Objectives: To migrate data from an On-premises SQL Sever to Azure SQL Database. To show a quick and summarized walk through and practical insights of this specific process. Background: I have a .NET Web app using the sample Adventure Works database all running in an on-premises dev server. Steps: Install the Data Migration Assistant Tool …

Continue reading Walk-through of Data Migration Assistant with Azure SQL DB