Get Kubernetes+Docker Container Platform on Azure

Image for post
Image for post
A man standing on top of a mountain — Le Ngoc Tan

Updated Jan 2019: Azure Container Service (ACS) has been replaced by Azure Kubernetes Service (AKS). Please refer to this guide on how to easily create an AKS cluster.

Table of Contents

1. Create Application ID

1) Go to Azure Active DirectoryApp registrations and click New application registration

Image for post
Image for post

2) Name your app and URL then click Create

Image for post
Image for post

3) Note the Application ID and click Settings

Image for post
Image for post

4) Go to Keys. Fill in key description and expires then click Save

Image for post
Image for post

5) Note the secret key generated

Image for post
Image for post

6) Go to your SubscriptionAccess control (IAM) and click Add

Image for post
Image for post

7) Add your new app with role at least Contributor

Image for post
Image for post

2. Deploy Azure Container Service

1) Go to Marketplace and search for ACS. Select and click Create.

Image for post
Image for post

2) Name your service and resource group

Image for post
Image for post

3) Select Kubernetes as the orchestrator. Complete other fields and fill Application ID in Service principal client ID and Secret key in client secret.

Image for post
Image for post

4) Select agent size. (This size is only for agents but not the master so you may need to resize the master after deploy)

Image for post
Image for post

5) On the summary page, click Deploy. This may take ~15–20 minutes.

Image for post
Image for post

6) After the deployment is done, here are the resources you get:

Image for post
Image for post

3. Connect to the Master

1) Select the master VM and click Connect to see SSH command.

Image for post
Image for post

2) Once connected, try to see the kubectl’s version using kubectl version

$ kubectl version
Client Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.7", GitCommit:"8e1552342355496b62754e61ad5f802a0f3f1fa7", GitTreeState:"clean", BuildDate:"2017-09-28T23:56:03Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"7", GitVersion:"v1.7.7", GitCommit:"8e1552342355496b62754e61ad5f802a0f3f1fa7", GitTreeState:"clean", BuildDate:"2017-09-28T23:56:03Z", GoVersion:"go1.8.3", Compiler:"gc", Platform:"linux/amd64"}

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store