Skip to content

Terraform scripts for free tier Kubernetes cluster on Oracle Cloud

Notifications You must be signed in to change notification settings

omdv/oracle-cloud-kubernetes

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Free Kubernetes cluster on Oracle Cloud with Terraform

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

Fork of the repo created for this article: Free Oracle Cloud Kubernetes cluster with Terraform

Setup

  1. Get the following data from your Oracle Cloud account
    • User OCID
    • Tenancy OCID
    • Compartment OCID
  2. Enter variables in .envrc and run direnv allow
  3. Execute a terraform init
  4. Execute a terraform apply
  5. To verify cluster access, do a kubectl get nodes

Optional manual steps

  1. Create your Kubernetes configuration file using
    $ oci ce cluster create-kubeconfig --cluster-id <cluster OCID> --file ~/.kube/oci-k8s-config --region <region> --token-version 2.0.0 --kube-endpoint PUBLIC_ENDPOINT
  2. Apply your K8S config for kubectl
    $ export KUBECONFIG=~/.kube/oci-k8s-config

About

Terraform scripts for free tier Kubernetes cluster on Oracle Cloud

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 97.1%
  • HTML 2.4%
  • Dockerfile 0.5%