GithubHelp home page GithubHelp logo

rodrigonavarro23 / k8s-vms-module Goto Github PK

View Code? Open in Web Editor NEW

This project forked from walmartdigital/k8s-vms-module

0.0 1.0 0.0 24 KB

Azure Virtual Machine resources Terraform module for k8s cluster.

HCL 100.00%

k8s-vms-module's Introduction

Kubernetes Virtual Machines Module

This module create all required resources for deploy a Virtual Machines to host a kubernetes cluster using RKE (Rancher Kubernetes Engine).

Usage

module "az_vms" {
  source = "git::https://github.com/walmartdigital/k8s-vms-module.git?ref=0.1.0"

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

Arguments

  • main_resource_group: A string representing the resource group where all resources will be provisioned, this resource group needs to be previously created (required).
  • environment: A string used as environment where the cluster is deployed (required).
  • name_suffix: A string used as name suffix (required).
  • cluster_name: A string used as the cluster name (required).
  • vnet_name: A string representing the resource group virtual network (required).
  • subnet_name: A string representing the subnet associated to virtual network (required).
  • images_resource_group: A string representing the resource group where to find the custom images (required).
  • k8s_image_name: A string used as custom k8s image name (required).
  • bastion_image_name: A string used as custom bastion image name (required).
  • ssh_public_key: A string used as the public ssh key for connect to bastion (required).
  • worker_count: A string used as number of workers (default: 3).
  • network_security_group_id: A string used as network security group ID.
  • lb_address_pool_id: A string used as load balancer address pool ID.
  • default_tags: Tags assigned to every resource that support it (type: map).

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.

You can use our k8s-lb-module and k8s-nsg-module to configure and use a Load Balancer and Network Security Group 100% compatible with this module

k8s-vms-module's People

Contributors

maximilianoguzman avatar maxguzman avatar rodrigonavarro23 avatar

Watchers

James Cloos 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.