eficode / free-k8s-oci-tf

Free Kubernetes cluster on Oracle Cloud with Terraform

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in user YAML: (<unknown>): found character that cannot start any token while scanning for the next token at line 1 column 13
---
maintainer: @mortench3000
---

Free Kubernetes cluster on Oracle Cloud with Terraform - Eficode modifications

This repository serves as a working improvement over the original great work done by Arnold as described below. While the original repository was supporting a short series of blog post, the ambition is now to take it a bit further and improve it with automation and adding monitoring and applications to the cluster.

The purpose is also to have a cheap, or even free, playground for both Kubernetes and Terraform by exploring and exploiting the Oracle Cloud Free Tier.

Since the repository has been restructured by at least splitting Terraform into smaller modules, the aim is not necessarily to deliver changes back to the originial.

You are welcome to contribute by creating issues and/or Pull Requests.

Free Kubernetes cluster on Oracle Cloud with Terraform

The repository contains a Terraform script for creating a fully functioning Kubernetes cluster on Oracle Cloud.

The repo was created for this article: Free Oracle Cloud Kubernetes cluster with Terraform

Setup in a nutshell

  1. Get the following data from your Oracle Cloud account
    • User OCID
    • Tenancy OCID
    • Compartment OCID
  2. Open a terminal within the oci-infra folder
  3. Execute a terraform init
  4. Execute a terraform apply
  5. Create your Kubernetes configuration file using
    $ oci ce cluster create-kubeconfig --cluster-id <cluster OCID> --file ~/.kube/free-k8s-config --region <region> --token-version 2.0.0 --kube-endpoint PUBLIC_ENDPOINT
  6. Apply your K8S config for kubectl
    $ export KUBECONFIG=~/.kube/free-k8s-config
  7. To verify cluster access, do a kubectl get nodes
  8. Enjoy

About

Free Kubernetes cluster on Oracle Cloud with Terraform


Languages

Language:HCL 96.9%Language:HTML 2.5%Language:Dockerfile 0.6%