k8s

hajowieland/k8s/oci

Terraform Module HCL OCI

Terraform module for creating a Kubernetes cluster on Oracle Cloud Infrastructure

Install
module "k8s" {
source = "hajowieland/k8s/oci"
version = "1.0.4"
}
plain text: /constructs/tfmod-hajowieland-k8s-oci/install.txt
⭐ Source on GitHub 📦 Registry page
README

Terraform Kubernetes on Oracle Cloud Infrastructure (OKE) This repository contains the Terraform module for creating a simple but ready-to-use Kubernetes Cluster on Oracle Container Engine for Kubernetes (OKE). It uses the latest available Kubernetes version available in the Oracle Cloud Infrastructure region and creates a kubeconfig file at completion. - Terraform Kubernetes on Oracle Cloud - Requirements - Features - Notes - Defaults - Terraform Inputs - Outputs Requirements You need an Oracle Cloud account. Features Always uses latest Kubernetes version available at Oracle Cloud kubeconfig file generation Creates separate node pool for worker nodes Allows SSH access from workstation IPv4 address only Notes export KUBECONFIG=./kubeconfig_oci in repo root dir to use the generated kubeconf

Inputs (21)
NameTypeDescriptionDefault
oci_user_ocidstringOCI User OCID required
oci_fingerprintstringOCI SSH public key fingerprint required
oci_tenancy_ocidstringOCI Tenancy OCID required
oci_private_key_pathstringOCI private key path (e.g. `~/.oci/oci_api_key.pem`)"~/.oci/oci_api_key.pem"
oci_cluster_namestringOCI OKE Kubernetes cluster name (e.g. `k8soci`)"k8soci"
enable_oracleboolEnable / Disable Oracle (e.g. `1`)true
random_cluster_suffixstringRandom 6 byte hex suffix for cluster name""
lbsnumberCount of 8-bit numbers of LoadBalancer base_cidr_block10
oci_node_pool_namestringOCI Kubernetes node pool name (e.g. `k8s-nodepool-oci`)"k8s-nodepool-oci"
oci_node_pool_node_shapestringOCI Kubernetes node pool Shape (e.g. `VM.Standard2.1` => 1vCPU, 15GB RAM)"VM.Standard2.1"
oci_cluster_add_ons_kubernetes_dashboardboolEnable Kubernetes Dashboard (e.g. `false`)false
oci_subnetsnumberCount of 8-bit numbers of subnets base_cidr_block2
oci_node_pool_ssh_public_keystringSSH public key to add to each node in the node pool (e.g. `~/.ssh/id_rsa.pub`)"~/.ssh/id_rsa.pub"
oci_subnet_prohibit_public_ip_on_vnicboolOCI VCN subnet prohibits assigning public IPs or not (e.g. `false`)true
oci_node_pool_node_image_namestringOCI Kubernetes node pool image name (e.g. `Oracle-Linux-7.6`)"Oracle-Linux-7.6"
oci_cluster_add_ons_tillerboolEnable Tiller for helm (e.g. `false`)false
oci_regionstringOCI Region to use (e.g. `eu-frankfurt-1` => Frankfurt)"eu-frankfurt-1"
oci_public_key_pathstringOCI public key path (e.g. `~/.oci/oci_api_key_public.pem`)"~/.oci/oci_api_key_public.pem"
oci_cidr_blockstringOCI VCN CIDR block (e.g. `10.0.23.0/16`)"10.0.0.0/16"
oci_policy_statementslist(string)OCI Policy Statements in policy language[ "Allow service OKE to manage all-res
oke_node_pool_sizenumberOKE Kubernetes worker node pool quantity per subnet (e.g. `2`)2
Outputs (2)
kubernetes_version
kubeconfig_path_oci
Resources (12)
local_fileoci_containerengine_clusteroci_containerengine_node_pooloci_core_default_dhcp_optionsoci_core_default_route_tableoci_core_default_security_listoci_core_internet_gatewayoci_core_security_listoci_core_subnetoci_core_vcnoci_identity_policyrandom_id
Details
FrameworkTerraform Module
LanguageHCL
Version1.0.4
Cloud OCI
★ Stars7
Forks9
Total downloads1.5k
Inputs21
Outputs2
Resources12
LicenseGPL-3.0
Namespacehajowieland
Updated