Skip to content

Instantly share code, notes, and snippets.

@jgreat
Last active April 26, 2018 19:01
Show Gist options
  • Save jgreat/859de5382aff373feb5ccf8e02a4ca46 to your computer and use it in GitHub Desktop.
Save jgreat/859de5382aff373feb5ccf8e02a4ca46 to your computer and use it in GitHub Desktop.

Azure Node Driver

Create an cluster with an existing vnet/subnet in your subscription

Credentals

You need to set up an app access (service principal): https://rancher.com/docs/rancher/v1.6/en/hosts/azure/#app-registration

Vnet/Subnet

  • Location: westus
  • ResourceGroup: jgreat-network
  • Vnet: jgreat-vnet
  • Subnet: k8s-demo1

Create Cluster

Select the Microsoft Azure Provider Name: jgreat-k8s-demo1

Cluster Options:

Optional: Enable Azure Cloud Provider

  • aadClientId: your service principal is
  • aadClientSecret: your service principal secret
  • location: same as your vnet westus
  • resouceGroup: same as your cluster rg jgreat-k8s-demo1
  • subnetName: k8s-demo1
  • subscriptionId: your subscription id
  • tenantId: your tenant Id
  • vnetName: jgreat-vnet
  • vnetResourceGroup: jgreat-network

Node template

Placement

  • enviornment: AzurePublicCloud
  • region: West US
  • Avaliblity Set: jgreat-k8s-demo1
  • Resource Group: jgreat-k8s-demo1

Network

  • subnet: k8s-demo1
  • subnet prefix: empty
  • Vnet: jgreat-network:jgreat-vnet
  • PublicIp: Dynamic
  • PrivateIp: empty

Instance

  • Image: canonical:UbuntuServer:16.04.0-LTS:latest
  • Size: Standard_DS2_v2
  • DockerPort: 2379
  • OpenPort: 6443/tcp,2379/tcp,2380/tcp,8472/udp,4789/udp,10256/tcp,10250/tcp,10251/tcp,10252/tcp,80/tcp,443/tcp,6379/tcp
  • SSH User: ubuntu
  • Storage: Premium LRS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment