- Get the following data from your Oracle Cloud account
- Compartment OCID
- Region
- Execute a
terraform init
- Execute a
terraform apply
- Create your Kubernetes configuration file using
$ oci ce cluster create-kubeconfig --cluster-id <cluster OCID> --file ~/.kube/oci-k8s --region <region> --token-version 2.0.0 --kube-endpoint PUBLIC_ENDPOINT
- Apply your K8S config for kubectl
$ export KUBECONFIG=~/.kube/oci-k8s
- To verify cluster access, do a
kubectl get nodes
- Enjoy 🍺