Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/galovics/free-kubernetes-oracle-cloud-terraform
- Owner: galovics
- Created: 2022-02-08T20:19:22.000Z (almost 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-16T11:23:42.000Z (over 2 years ago)
- Last Synced: 2024-05-28T07:00:16.719Z (6 months ago)
- Language: HCL
- Size: 7.81 KB
- Stars: 54
- Watchers: 4
- Forks: 42
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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