Skip to content

walmartdigital/k8s-azure-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Kubernetes Azure Module

This module create all required resources for deploy a kubernetes cluster using rke (Rancher Kubernetes Engine).

Usage

module "k8s" {
  source = "https://github.com/walmartdigital/k8s-azure-module.git?ref=0.0.1"

  name_suffix = "mysuffix"
  cluster_name = "my-cluster"
  environment = "staging"
  main_resource_group = "my-resource-group"
  vnet_name = "my-vnet-name"
  subnet_name = "my-subnet-name"
  k8s_image_name = "k8s-v1.0.0"
  bastion_image_name = "bastion-v1.0.0"
  images_resource_group = "my-images-resource-group"
  ssh_public_key = "abc123"
  worker_count = "2"
  lb_address_pool_id = "loadbalancer-address-pool-id"
}

Arguments

  • name_suffix: Name of the suffix after the name (type: string).
  • cluster_name: Name of the cluster (type: string, default: kubernetes).
  • environment: Environment where the cluster is deployed (type: string, default: labs).
  • main_resource_group: Resource group where all resources will be provisioned (type: string, required).
  • vnet_name: Main resource group virtual network (type: string, required).
  • subnet_name: Subnet associated to virtual network (type: string, required).
  • k8s_image_name: Custom K8s image name (type: string, required).
  • bastion_image_name: Custom bastion image name (type: string, required).
  • images_resource_group: Resource group where to find the custom images (type: string, required).
  • ssh_public_key: The public ssh key for connect to bastion (type: string, required).
  • default_tags: Tags assigned to every resource that support it (type: map).
  • worker_count: Number of workers (type: string, default: 3).
  • lb_address_pool_id: Load balancer address pool id (type: string).

Outputs

  • bastion_ip: The bastion public IP address.
  • worker_ips: The private IPs of the created worker VMs.
  • manager_ips: The private IPs of the created manager VMs.