Giter Club home page Giter Club logo

terraform-civo-kubernetes-cluster's Introduction

CIVO Kubernetes Terraform module

Terraform module which creates CIVO Kubernetes cluster and supporting infrastructure.

Usage

module "civo_k8s" {
    source  = "shipwright-sh/terraform-civo-k8s"
    version = "0.1"

    cluster_name = "my-cluster"
    region       = "LON1"
    
    cluster_node_count = 3
    cluster_node_size  = "g4s.kube.medium"

    ingress_rule = [
      {
        label      = "k8s"
        protocol   = "tcp"
        port_range = "6443-6443"
        cidr       = ["0.0.0.0/32"]
        action     = "allow"
      }
    ]

    egress_rule = [
      {
        label      = "all"
        protocol   = "tcp"
        port_range = "1-65535"
        cidr       = ["0.0.0.0/0"]
        action     = "allow"
      }
    ]
}

Requirements

Name Version
terraform >= 0.13
civo >= 1.0.18

Providers

Name Version
civo >= 1.0.18

Modules

No modules.

Resources

Name Type
civo_firewall.firewall resource
civo_kubernetes_cluster.cluster resource
civo_network.network resource

Inputs

Name Description Type Default Required
cluster_name Name of the kubernetes cluster string n/a yes
cluster_node_count The size of the nodes to provision. Run civo size list for all options number 3 no
cluster_node_size Instance type of the target nodes, choose from g3.k3s.xsmall, g3.k3s.small, g3.k3s.medium, g3.k3s.large, g3.k3s.xlarge, g3.k3s.2xlarge string "g3.k3s.medium" no
cni CNI Plugin, available options: flannel, cilium string "cilium" no
create_default_rules Create default firewall rules bool false no
egress_rule Firewall egress rule
list(object({
label = string
protocol = string
port_range = string
cidr = set(string)
action = string
}))
n/a yes
ingress_rule Firewall ingress rule
list(object({
label = string
protocol = string
port_range = string
cidr = set(string)
action = string
}))
n/a yes
kubernetes_version Supported version of the k3s cluster string "" no
network_name Name of the network string "" no
node_label Node pool label string "" no
region The region to provision the cluster against string "LON1" no
tags Space separated list of tags string "" no

Outputs

Name Description
api_endpoint The API server endpoint of the cluster
cluster_id The ID of the cluster
kubeconfig The kubeconfig of the cluster
master_ip The IP address of the master node

Contributing

We are greatful to the community for contributiong bugfixes and inprovements. Use these templates to raise bug reports and feature requests.

terraform-civo-kubernetes-cluster's People

Contributors

klaatu51 avatar liam-mctague-vl avatar

Watchers

 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.