GithubHelp home page GithubHelp logo

walmartdigital / k8s-azure-module Goto Github PK

View Code? Open in Web Editor NEW
3.0 5.0 5.0 32 KB

Terraform module for creating base k8s infrastructure

HCL 100.00%
terraform-modules terraform k8s-cluster azure rancher

k8s-azure-module's Introduction

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.

k8s-azure-module's People

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.