karbon

Aristocrat-B2B/karbon/nutanix

Terraform Module HCL NUTANIX

A module that builds Karbon K8s cluster on Nutanix hypervisor

Install
module "karbon" {
source = "Aristocrat-B2B/karbon/nutanix"
version = "2.0.1"
}
plain text: /constructs/tfmod-aristocrat-b2b-karbon-nutanix/install.txt
⭐ Source on GitHub 📦 Registry page
README

terraform-nutanix-karbon A terraform module to create a managed Kubernetes cluster on Nutanix. Available through the Terraform registry. Assumptions You want to create a Nutanix Karbon Kubernetes cluster that has valid default values for just about everything. Important note The kubernetes_version is a required variable. Kubernetes is evolving a lot, and each major version includes new features, fixes, or changes. Always check Kubernetes Release Notes before updating the major version.** Usage example A full example leveraging other community modules is contained in the examples/. ``hcl terraform { required_providers { nutanix = { source = "nutanix/nutanix" version = "1.2.0" } } } provider "nutanix" { username = "admin" password = "ItsASecret!" endpoint = "10.0.0.10" # prism endpoint insec

Inputs (30)
NameTypeDescriptionDefault
nutanix_cluster_namestringThe name of the nutanix cluster required
subnet_namestringThe name of the nutanix subnet to deploy into required
node_os_versionstringThe version of the node OS image required
kubernetes_versionstringK8s version of the cluster required
storage_class_config_storageContainerstringName of the storage container the storage container uses to provision volumes"Default"
master_node_pool_ahvConfig_memorynumberMemory allocated for each VM on the PE cluster in MiB4096
worker_node_pool_namestringWorker node pool name"worker_node_pool"
etcd_node_pool_ahvConfig_cpunumberThe number of Vcpus allocated to each VM on the PE cluster4
external_ipv4_addressstringVRRP external IP for karbon multi-master nodes""
master_node_pool_numInstancesnumberNumber of nodes in the master node pool1
worker_node_pool_numInstancesnumberNumber of nodes in the worker node pool1
master_node_pool_ahvConfig_cpunumberThe number of Vcpus allocated to each VM on the PE cluster2
worker_node_pool_ahvConfig_cpunumberThe number of Vcpus allocated to each VM on the PE cluster8
cni_config_pod_ipv4_cidrstringCIDR for pods in the cluster"172.19.0.0/16"
cni_config_service_ipv4_cidrstringClassless inter-domain routing (CIDR) for k8s services in the cluster"172.20.0.0/16"
storage_class_config_usernamestringUsername of the Prism Element user that the API calls use to provision volumes"admin"
etcd_node_pool_ahvConfig_memorynumberMemory allocated for each VM on the PE cluster in MiB8192
master_node_pool_ahvConfig_disknumberSize of local storage for each VM on the PE cluster in MiB122880
storage_class_config_passwordstringThe password of the Prism Element user that the API calls use to provision volum"its_a_secret!"
create_karbonboolControls if Karbon resource should be createdtrue
storage_class_config_reclaimPolicystringReclaim policy for persistent volumes provisioned using the specified storage cl"Delete"
storage_class_config_volumeConfig_fileSystemstring Karbon uses either the ext4 or xfs file-system on the volume disk"ext4"
etcd_node_pool_numInstancesnumberNumber of nodes in the etcd node pool1
etcd_node_pool_ahvConfig_disknumberSize of local storage for each VM on the PE cluster in MiB40960
Outputs (8)
cp_nodes — Map of Karbon Control Plane master nodes { hostname = { ip = <ip> }}
etcd_nodes — Map of Karbon etcd nodes { hostname = { ip = <ip> }}
host_inventory — Map which contains all Karbon nodes { hostname = { ip = <ip> }}
karbon_cluster_name — The name of the Karbon cluster
karbon_kubernetes_version — The kubernetes version
karbon_kubernetes_kubeconfig — Kubeconfig settings for Karbon
karbon_kubernetes_sshconfig — SSH config for Karbon
worker_nodes — Map of Karbon worker nodes { hostname = { ip = <ip> }}
Resources (1)
nutanix_karbon_cluster
Details
FrameworkTerraform Module
LanguageHCL
Version2.0.1
Cloud NUTANIX
★ Stars1
Forks2
Total downloads5.9k
Inputs30
Outputs8
Resources1
LicenseMPL-2.0
NamespaceAristocrat-B2B
Updated