DEVELOPMENT
A development guide for logging operator

Pre-requisites

Access to Kubernetes cluster

First of all, you will need access to a Kubernetes cluster. The easiest way to start is minikube.
  • Virtualbox - hypervisor to run a Kubernetes cluster
  • Minikube - for Kubernetes cluster creation on the local machine
  • Kubectl - 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:-
1
make manager
Copied!

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.
1
make bundle-build
Copied!

Testing

If you want to play it on Kubernetes. You can use a minikube.
1
# Start minikube
2
minikube start --vm-driver virtualbox --cpus=4 --memory=8000
3
4
helm upgrade elastic-stack ./ -f values.yaml \
5
--set elasticsearch.enabled=true \
6
--set elasticsearch.master.enabled=true \
7
--set elasticsearch.master.replicas=3 \
8
--set elasticsearch.data.enabled=true \
9
--set elasticsearch.data.replicas=3 \
10
--set elasticsearch.client.enabled=true \
11
--set elasticsearch.client.replicas=1 \
12
--set elasticsearch.ingestion.enabled=true \
13
--set elasticsearch.ingestion.replicas=1 \
14
--set fluentd.enabled=true --set kibana.enabled=true \
15
--namespace logging-operator --install
Copied!

Run Tests

1
make test
Copied!
Last modified 1yr ago