Deploys the whole solution in 15 minutes or less. Including OKE Cluster, Node Pools, helm charts, Services to Kubernetes and applications
(If not using OCI CloudShell, you need to have the terraform, OCI cli and kubectl installed and configured on workstation that will be used)
- Create a folder for the Terraform scripts: e.g.:
mkdir oke-efk && cd oke-efk
- Get the project:
https://github.com/mrabhiram/OKE-EFK.git
- Unzip. e.g.:
unzip OKE-EFK.zip
- Copy the file
terraform.tfvars.example
toterraform.tfvars
and update the tenancy_ocid and compartment_ocid variablescp terraform.tfvars.example terraform.tfvars
- Run the command
terraform init
to init the Terraform and providers - Run the command
terraform apply
to deploy everything.- Takes near 8 min for the OKE cluster be deployed
- Takes near 5 min to run the app deployment scripts, after the OKE cluster is ready
- Download the stack from here: (https://github.com/mrabhiram/OKE-EFK.git)
- Open the Resource Manager on the OCI Console. e.g.: https://console.us-ashburn-1.oraclecloud.com/resourcemanager/stacks/create
- Drag-and-Drop the OKE-EFK.zip, optionally set any variables needed and click Create
- Select "Terraform Apply"
- Takes near 8 min for the OKE cluster be deployed
- Takes near 5 min to run the app deployment scripts, after the OKE cluster is ready
- Go to the project folder (e.g.: cd cloud.poc.tf.oracle5gaware)
- Run the command
export KUBECONFIG=./generated/kubeconfig
to use the kubeconfig for the created cluster - Run the command
kubectl get pods --all-namespaces
to to see all the pods created
- Run the command
kubectl get svc -n occne-infra o5g-efk-kibana-logging
to get the EXTERNAL-IP of the kibana loadbalancer. - Open the browser and point to <EXTERNAL_IP> to open the kibana ui.