1 min read
Open Service Mesh: Azure's SMI-Compatible Mesh
Open Service Mesh (OSM) is a lightweight, SMI-compatible service mesh with first-class Azure support through AKS integration.
Enabling OSM on AKS
# Enable OSM add-on
az aks enable-addons \
--addons open-service-mesh \
--resource-group myResourceGroup \
--name myAKSCluster
# Verify installation
kubectl get pods -n kube-system -l app=osm-controller
Namespace Enrollment
# Enroll namespace
osm namespace add bookstore
# Or use label
kubectl label namespace bookstore openservicemesh.io/monitored-by=osm
Traffic Policies
apiVersion: specs.smi-spec.io/v1alpha4
kind: HTTPRouteGroup
metadata:
name: bookstore-routes
spec:
matches:
- name: books
pathRegex: /books
methods: ["GET"]
---
apiVersion: access.smi-spec.io/v1alpha3
kind: TrafficTarget
metadata:
name: bookstore
spec:
destination:
kind: ServiceAccount
name: bookstore
rules:
- kind: HTTPRouteGroup
name: bookstore-routes
matches:
- books
sources:
- kind: ServiceAccount
name: bookbuyer
Summary
OSM provides Azure-native service mesh capabilities with SMI standard compliance, simplifying mesh adoption on AKS.
References: