Git Product home page Git Product logo

yagan's Introduction

Yagan

Yagan is the main source for kubernetes cluster provisioning

Requirements

  • terraform v0.13
  • kubectl v1.17+

yagan's People

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

yagan's Issues

Support out-tree cloud-providers

RKE has built-in support for (legacy) in-tree cloud providers deployment (AWS, Azure, OpenStack and vSphere), this limits deployment scenarios where a different cloud-provider is needed. Yagan should support out-tree cloud providers listed in kubernetes official repos through HCL-defined resources as well as allowing a bring your own CCM approach.

So defining a variable like cloud_provider = "openstack" along with credentials and additional configuration enables the openstack out-tree provider within RKE.

Standardize and extend nodes consumption

Currently this module consumes a map of nodes which contains tightly defined roles per node group

nodes = {
  controlplane = [
    {
      name = "node-1"
      ip = "192.168.2.123"
    }
  ]
  etcd = [
    {
      name = "node-2"
      ip = "192.168.2.25"
    }
  ]
  worker = [
    {
      name = "node-3"
      ip = "192.168.2.95"
    }
  ]
}

which is then consumed by

resource rke_cluster cluster {
...
  dynamic nodes {
    for_each = flatten(
      [
        for type, node in var.nodes : [
          for n in node : {
            ip   = n.ip
            name = n.name
            role = type
          }
        ]
      ]
    )

    content {
      address           = nodes.value.ip
      hostname_override = nodes.value.name
      internal_address  = nodes.value.ip
      node_name         = nodes.value.name
      role              = [nodes.value.role]
      ssh_key           = var.private_key
      user              = var.vm_user
    }
  }
...
}

this approach does not offer much flexibility if one needs to define multi-role nodes
(e.g.: one node for controlplane and etcd + one node for worker).

A more flexible way to define nodes and their roles is necessary, as well as setting labels for each one, this way needs
to be standard for yagan infrasctructure modules to come (e.g.: yagan-openstack, yagan-vsphere, etc)

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.