Giter Site home page Giter Site logo

mrabhiram / oke-efk Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 2.0 374 KB

Creating a kubernetes cluster in OCI. Deploying Elasticsearch-Fluentd-Kibana on the cluster through terraform.

Smarty 4.65% HCL 70.67% Shell 10.24% HTML 7.09% CSS 6.13% Python 1.22%

oke-efk's Introduction

OKE EFK terraform scripts

Deploys the whole solution in 15 minutes or less. Including OKE Cluster, Node Pools, helm charts, Services to Kubernetes and applications


Steps (Using Terraform and OCI CloudShell)

(If not using OCI CloudShell, you need to have the terraform, OCI cli and kubectl installed and configured on workstation that will be used)
  1. Create a folder for the Terraform scripts: e.g.: mkdir oke-efk && cd oke-efk
  2. Get the project: https://github.com/mrabhiram/OKE-EFK.git
  3. Unzip. e.g.: unzip OKE-EFK.zip
  4. Copy the file terraform.tfvars.example to terraform.tfvars and update the tenancy_ocid and compartment_ocid variables cp terraform.tfvars.example terraform.tfvars
  5. Run the command terraform init to init the Terraform and providers
  6. 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

Steps (Using OCI Console UI and Resource Manager)

  1. Download the stack from here: (https://github.com/mrabhiram/OKE-EFK.git)
  2. Open the Resource Manager on the OCI Console. e.g.: https://console.us-ashburn-1.oraclecloud.com/resourcemanager/stacks/create
  3. Drag-and-Drop the OKE-EFK.zip, optionally set any variables needed and click Create
  4. 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

Accessing the new OKE cluster created

  1. Go to the project folder (e.g.: cd cloud.poc.tf.oracle5gaware)
  2. Run the command export KUBECONFIG=./generated/kubeconfig to use the kubeconfig for the created cluster
  3. Run the command kubectl get pods --all-namespaces to to see all the pods created

Accessing the logs (Kibana)

  1. Run the command kubectl get svc -n occne-infra o5g-efk-kibana-logging to get the EXTERNAL-IP of the kibana loadbalancer.
  2. Open the browser and point to <EXTERNAL_IP> to open the kibana ui.

oke-efk's People

Contributors

mrabhiram avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.