Logging Operator
  • Logging Operator
  • Quickstart
  • Installation
    • Kubectl
    • Helm
  • Setup
  • Management
  • Configuration
    • Elasticsearch
    • Fluentd
    • Kibana
    • Index Lifecycle
    • Index Template
  • DEVELOPMENT
  • ROADMAP
  • CHANGELOG
Powered by GitBook
On this page
  • Pre-requisites
  • Build Locally
  • Build Image
  • Testing

Was this helpful?

DEVELOPMENT

A development guide for logging operator

PreviousIndex TemplateNextROADMAP

Last updated 4 years ago

Was this helpful?

Pre-requisites

Access to Kubernetes cluster

First of all, you will need access to a Kubernetes cluster. The easiest way to start is minikube.

  • - hypervisor to run a Kubernetes cluster

  • - for Kubernetes cluster creation on the local machine

  • - to interact with Kubernetes cluster

Tools to build an Operator

Apart from the Kubernetes cluster, there are some tools that are needed to build and test the "Logging Operator".

Required Tools:-

Build Locally

To achieve this, execute this command:-

make manager

Build Image

The Logging operator gets packaged as a container image for running on the Kubernetes cluster. These instructions will guide you to build an image.

make bundle-build

Testing

If you want to play it on Kubernetes. You can use a minikube.

# Start minikube
minikube start --vm-driver virtualbox --cpus=4 --memory=8000

helm upgrade elastic-stack ./ -f values.yaml \
    --set elasticsearch.enabled=true \
    --set elasticsearch.master.enabled=true \
    --set elasticsearch.master.replicas=3 \
    --set elasticsearch.data.enabled=true \
    --set elasticsearch.data.replicas=3 \
    --set elasticsearch.client.enabled=true \
    --set elasticsearch.client.replicas=1 \
    --set elasticsearch.ingestion.enabled=true \
    --set elasticsearch.ingestion.replicas=1 \
    --set fluentd.enabled=true --set kibana.enabled=true \
    --namespace logging-operator --install

Run Tests

make test
Virtualbox
Minikube
Kubectl
Git
Go
Docker
Operator SDK
Make