Quickstart
A quickstart guide to create a minikube cluster and setup "Logging Operator" on it.

Pre-requisites

In order to setup redis-operator, you'll need access to a Kubernetes cluster:-
  • Virtualbox - hypervisor to run a Kubernetes cluster
  • Minikube - for Kubernetes cluster creation on the local machine
  • Kubectl - to interact with Kubernetes cluster

Deploying Logging Operator

For deployment of the Logging Operator, we need a Kubernetes runtime environment. We will use minikube for that purpose
1
minikube start --vm-driver virtualbox --cpus=4 --memory=8000
Copied!
Now we can use kubectl to connect with the Kubernetes cluster.

Namespace Creation

Since we are going to use pre-baked manifests of Kubernetes in that case we need to setup the namespace with a specific name called "logging-operator".
1
kubectl create ns logging-operator
Copied!

CRD Setup

So we have already pre-configured CRD in config/crd directory. We just have to run a magical kubectl commands.
1
kubectl apply -f config/crd/
Copied!

RBAC Setup

Similar like CRD, we have pre-baked RBAC config files as well inside config/rbac which can be installed and configured by kubectl.
1
kubectl apply -f config/rbac/
Copied!

Operator Deployment

Once all the initial steps are done, we can create the deployment for "Logging Operator". The deployment manifests for the operator are present inside config/manager/manager.yaml file.
1
kubectl apply -f config/manager/manager.yaml
Copied!

Deploy EFK Cluster

We have a few samples manifests files inside config/sample.
1
kubectl apply -f config/samples/
Copied!

Cleanup

1
kubectl de;ete -f config/samples/
2
kubectl delete -f config/manager/manager.yaml
3
kubectl delete -f config/rbac/
4
kubectl delete -f config/crd/
5
kubectl delete ns logging-operator
Copied!
Last modified 1yr ago