Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/galovics/free-kubernetes-oracle-cloud-terraform


https://github.com/galovics/free-kubernetes-oracle-cloud-terraform

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        

# 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](https://arnoldgalovics.com/oracle-cloud-kubernetes-terraform/)

## Setup in a nutshell
1. Get the following data from your Oracle Cloud account
* User OCID
* Tenancy OCID
* Compartment OCID
1. Open a terminal within the `oci-infra` folder
1. Execute a `terraform init`
1. Execute a `terraform apply`
1. Create your Kubernetes configuration file using
```bash
$ oci ce cluster create-kubeconfig --cluster-id --file ~/.kube/free-k8s-config --region --token-version 2.0.0 --kube-endpoint PUBLIC_ENDPOINT
```
1. Apply your K8S config for kubectl
```bash
$ export KUBECONFIG=~/.kube/free-k8s-config
```
1. To verify cluster access, do a `kubectl get nodes`
1. Enjoy