Git Product home page Git Product logo

oracle-cloud-k3s-ha's Introduction

Oracle Cloud Infrastructure k3s Cluster

This Terraform project helps you deploy a fault-tolerant and production-grade Kubernetes cluster on Oracle Cloud without spending a dime.

You need to signup for an OCI account for this project. The entire Kubernetes cluster is built using Free tier resources.

Step 1: Clone this git repo on your local system

Step 2: Create terraform.tfvars as follows:

fingerprint         = "add me"  # Oracle Cloud Configuration
private_key_path    = "add me"  # Oracle Cloud Configuration
user_ocid           = "add me"  # Oracle Cloud Configuration
tenancy_ocid        = "add me"  # Oracle Cloud Configuration
compartment_id      = "add me"  # Oracle Cloud Configuration
region              = "add me"  # Oracle Cloud Configuration
ssh_authorized_keys = ["add me"] # Add your Public SSH key
image_ocid          = "add me"  # Added the Latest Image OCID for Ubuntu aarch64
cluster_name        = "add me"  # Cluster name (it will be appended as a prefix to your resources)
ssh_whitelist       = "add me"  # You public IP block to whitelist SSH and KubeAPI access. Example: 1.2.3.4/32

Step 3: Once you have successfully created the terraform.tfvars run the following commands to deploy your resources:

teraform init
terraform apply

Requirements

Name Version
oci >= 4.78.0

Providers

No providers.

Modules

Name Source Version
k3s-cluster ./k3s-cluster n/a

Resources

No resources.

Inputs

Name Description Type Default Required
cluster_name Name of the K3s Cluster string n/a yes
compartment_id OCI Compartment ID string n/a yes
fingerprint The fingerprint of the key to use for signing string n/a yes
image_ocid Image OCID string n/a yes
private_key_path The path to the private key to use for signing string n/a yes
region The region to connect to. Default: eu-frankfurt-1 string "ap-mumbai-1" no
ssh_authorized_keys List of authorized SSH keys list(any) n/a yes
ssh_whitelist IP address or IP address block to be whitelisted for SSH and KubeAPI access string n/a yes
tenancy_ocid The tenancy OCID. string n/a yes
user_ocid The user OCID. string n/a yes

Outputs

Name Description
availability_domain Availability Domain of the Cluster
cluster_name Cluster name Prefix
k3s_cluster_token n/a
loadbalancer_ipaddress Loadbalancer IP address
server-1_ip_address Public IP address of Server 1
server-2_ip_address Public IP address of Server 2
server-3_ip_address Public IP address of Server 3
vcn_name Cluster VCN name
vcn_subnet Cluster VCN Subnet Range

oracle-cloud-k3s-ha's People

Contributors

mayurkr avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

rescapeio

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.