AKS Engine: legacy tool for Kubernetes on Azure (see status)
Перейти к файлу
Cole Mickens d102164508 Merge pull request #130 from colemickens/colemickens-pr-k8s-dashboard-1.5.0
kubernetes: dashboard 1.4.2 -> 1.5.0
2016-11-30 12:22:19 -08:00
docs Merge pull request #104 from timfpark/master 2016-11-22 17:12:30 -08:00
examples Updating api model in acs-generator to not have apiversion on the types used by acs apis. but still accepting them in the json for commandline interface. So that json sent to arm is the same as json given to command line and we won't have unintialized fields in our api code when arm doesn't send it to us. 2016-11-07 08:40:06 -08:00
parts kubernetes: dashboard 1.4.2 -> 1.5.0 2016-11-30 18:42:44 +00:00
pkg kubernetes: dashboard 1.4.2 -> 1.5.0 2016-11-30 18:42:44 +00:00
scripts Add devenv for building/testing/validating under Docker 2016-10-27 12:10:36 -07:00
test basic e2e testing for k8s 2016-10-26 14:01:09 -07:00
.dockerignore Add devenv for building/testing/validating under Docker 2016-10-27 12:10:36 -07:00
.gitattributes Add devenv for building/testing/validating under Docker 2016-10-27 12:10:36 -07:00
.gitignore Add devenv for building/testing/validating under Docker 2016-10-27 12:10:36 -07:00
Dockerfile Add devenv for building/testing/validating under Docker 2016-10-27 12:10:36 -07:00
LICENSE Add License 2016-10-06 07:18:42 -07:00
Makefile Add devenv for building/testing/validating under Docker 2016-10-27 12:10:36 -07:00
README.md Merge pull request #110 from colemickens/colemickens-pr-fix-az-cli-docs 2016-11-21 09:33:18 -08:00
acs-engine.go Updating api model in acs-generator to not have apiversion on the types used by acs apis. but still accepting them in the json for commandline interface. So that json sent to arm is the same as json given to command line and we won't have unintialized fields in our api code when arm doesn't send it to us. 2016-11-07 08:40:06 -08:00

README.md

Microsoft Azure Container Service Engine - Builds Docker Enabled Clusters

Overview

The Azure Container Service Engine (acs-engine) generates ARM (Azure Resource Manager) templates for Docker enabled clusters on Microsoft Azure with your choice of DC/OS, Kubernetes, or Swarm orchestrators. The input to the tool is a cluster definition. The cluster definition is very similar to (in many cases the same as) the ARM template syntax used to deploy a Microsoft Azure Container Service cluster.

The cluster definition file enables the following customizations to your Docker enabled cluster:

  • choice of DC/OS, Kubernetes, or Swarm orchestrators
  • multiple agent pools where each agent pool can specify:
  • standard or premium VM Sizes,
  • node count,
  • Virtual Machine ScaleSets or Availability Sets,
  • Storage Account Disks or Managed Disks (under private preview),
  • Docker cluster sizes of 1200
  • Custom VNET

User guides

  • ACS Engine - shows you how to build and use the ACS engine to generate custom Docker enabled container clusters
  • Cluster Definition - describes the components of the cluster definition file
  • DC/OS Walkthrough - shows how to create a DC/OS enabled Docker cluster on Azure
  • Kubernetes Walkthrough - shows how to create a Kubernetes enabled Docker cluster on Azure
  • Swarm Walkthrough - shows how to create a Swarm enabled Docker cluster on Azure
  • Custom VNET - shows how to use a custom VNET
  • Attached Disks - shows how to attach up to 4 disks per node
  • Managed Disks (under private preview) - shows how to use managed disks
  • Large Clusters - shows how to create cluster sizes of up to 1200 nodes

Contributing

Please follow these instructions before submitting a PR:

  1. Execute make ci to run the checkin validation tests.

  2. Manually test deployments if you are making modifications to the templates. For example, if you have to change the expected resulting templates then you should deploy the relevant example cluster definitions to ensure you're not introducing any sort of regression.

Usage (Template Generation)

Usage is best demonstrated with an example:

$ vim examples/kubernetes.classic.json

# insert your preferred, unique DNS prefix
# insert your SSH public key

$ ./acs-engine examples/kubernetes.classic.json

This produces a new directory inside _output/ that contains an ARM template for deploying Kubernetes into Azure. (In the case of Kubernetes, some additional needed assets are generated and placed in the output directory.)

Deployment Usage

Generated templates can be deployed using the Azure XPlat CLI (v0.10**.0** only), the Azure CLI 2.0 or Powershell.

Deploying with Azure XPlat CLI

NOTE: Some deployments will fail if certain versions of the Azure XPlat CLI are used. It's recommended that you use Azure XPlat CLI 0.10**.0** until a new point release of 0.10.x is available with the fix.

$ azure login

$ azure account set "<SUBSCRIPTION NAME OR ID>"

$ azure config mode arm

$ azure group create \
    --name="<RESOURCE_GROUP_NAME>" \
    --location="<LOCATION>"

$ azure group deployment create \
    --name="<DEPLOYMENT NAME>" \
    --resource-group="<RESOURCE_GROUP_NAME>" \
    --template-file="./_output/<INSTANCE>/azuredeploy.json" \
    --parameters-file="./_output/<INSTANCE>/azuredeploy.parameters.json"

Deploying with Azure CLI 2.0

NOTE: Azure CLI 2.0 is still in preview, so changes may occur. Please reference the Azure CLI 2.0 GitHub Repo for updated commands.

$ az login

$ az account set --name "<SUBSCRIPTION NAME OR ID>"

$ az resource group create \
    --name "<RESOURCE_GROUP_NAME>" \
    --location "<LOCATION>"

$ az resource group deployment create \
    --name "<DEPLOYMENT NAME>" \
    --resource-group "<RESOURCE_GROUP_NAME>" \
    --template-file "./_output/<INSTANCE>/azuredeploy.json" \
    --parameters "@./_output/<INSTANCE>/azuredeploy.parameters.json"

Deploying with Powershell

Add-AzureRmAccount

Select-AzureRmSubscription -SubscriptionID <SUBSCRIPTION_ID>

New-AzureRmResourceGroup `
    -Name <RESOURCE_GROUP_NAME> `
    -Location <LOCATION>

New-AzureRmResourceGroupDeployment `
    -Name <DEPLOYMENT_NAME> `
    -ResourceGroupName <RESOURCE_GROUP_NAME> `
    -TemplateFile _output\<INSTANCE>\azuredeploy.json `
    -TemplateParameterFile _output\<INSTANCE>\azuredeploy.parameters.json