Skip to content
Branch: master
Find file History
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
kubernetes-3-masters-cosmos.json cosmosdb etcd (#89) Dec 6, 2018
readme.md docs: updating instructions on how to use Azure Cosmos DB etcd API (#669 Mar 14, 2019

readme.md

Kubernetes on Cosmos

This example deployment allows you to use AKS Engine to bootstrap a Kubernetes cluster on Azure that uses Azure Cosmos instead of locally installed and configured etcd.

What is the Azure Cosmos etcd API?

Azure Cosmos is a globally distributed, multi-model database service. It offers turnkey global distribution, guarantees single-digit millisecond latencies at the 99th percentile, elastic scaling of throughput and storage, and comprehensive SLA’s.

The Azure Cosmos etcd API allows you to use Azure Cosmos as the backing store for Kubernetes. Azure Cosmos implements the wire level protocol of etcd, allowing the master nodes’ API servers to use Azure Cosmos just like it would for a locally installed etcd.

Prerequisites

  1. Install the Azure CLI
  2. Install AKS Engine
  3. Have a whitelisted subscription for the Azure Cosmos etcd API. Follow instructions at https://aka.ms/cosmosetcdapi-signup to enroll in the private preview.

Steps

Follow the instructions here to deploy your first Kubernetes cluster.

Here is an example aks-engine command:

$ aks-engine deploy --subscription-id <SubscriptionId> \
    --client-id <servicePrincipalClientId> \
    --client-secret <ServicePrincipalSecret> \
    --dns-prefix <YourDNSPrefix> \
    --location centralus \
    --api-model <apiModel>.json

In the API model JSON (the cluster definition file), specify "cosmosEtcd" : true in the masterProfile properties to use Azure Cosmos etcd API instead of regular etcd.

A sample cluster definition file using Azure Cosmos is available here.

Verifying the deployment

After the deployment is successfully completed, you will see a new Azure Cosmos account created in your resource group. This account name will match your specified DNS prefix appended with k8s.

FAQ

What is provisioned in my Azure Cosmos account?

Your Azure Cosmos account will be provisioned with a database (EtcdDB) and a container (EtcdData). The container will store all the etcd related data.

What is the difference between using regular etcd vs. the Azure Cosmos etcd API as the backing store for Kubernetes?

With Azure Cosmos etcd API, benefits include:

  • No need to manually configure and manage etcd
  • High availability of etcd, guaranteed by Cosmos (99.99% in single region, 99.999% in 2+ regions).
  • Elastic scalability of etcd
  • Secure by default & enterprise ready
  • Industry-leading, comprehensive SLAs

Which Azure regions are Azure Cosmos etcd API available in?

In the preview, Central US is the currently supported region. More regions will be available in the future.

When will this be available for Azure Kubernetes Service (AKS)? Integration with AKS is on the roadmap. Please upvote on UserVoice and stay tuned.

Getting Support

To get support during the preview, you can file GitHub issues on this repo. Please mention @Azure/cosmosetcd when filing the issue. You can also email "askcosmosetcdapi@microsoft.com".

You can’t perform that action at this time.