Skip to content

Latest commit

 

History

History
83 lines (65 loc) · 2.24 KB

README.md

File metadata and controls

83 lines (65 loc) · 2.24 KB

Deploy logging-operator from Kubernetes Manifests

Clone the logging-operator repo

git clone [email protected]:banzaicloud/logging-operator.git

Navigate to the logging-operator folder

cd logging-operator

Create a controlNamespace named “logging”:

kubectl create ns logging

Create ServiceAccount and install cluster roles

kubectl -n logging create -f ./docs/deploy/manifests/rbac.yaml

Apply the ClusterResources

kubectl -n logging create -f ./config/crd/bases/logging.banzaicloud.io_clusterflows.yaml
kubectl -n logging create -f ./config/crd/bases/logging.banzaicloud.io_clusteroutputs.yaml
kubectl -n logging create -f ./config/crd/bases/logging.banzaicloud.io_flows.yaml
kubectl -n logging create -f ./config/crd/bases/logging.banzaicloud.io_loggings.yaml
kubectl -n logging create -f ./config/crd/bases/logging.banzaicloud.io_outputs.yaml

Deploy the Operator

kubectl -n logging create -f ./docs/deploy/manifests/deployment.yaml


Deploy logging-operator with Helm

Add operator chart repository:

helm repo add banzaicloud-stable https://kubernetes-charts.banzaicloud.com
helm repo update

Logging Operator

helm install --namespace logging --name logging banzaicloud-stable/logging-operator

You can install logging resource via Helm chart with built-in TLS generation.



Check logging-operator deployment

Pods Status

$ kubectl -n logging get pods
NAME                                        READY   STATUS    RESTARTS   AGE
logging-logging-operator-599c9cf846-5nw2n   1/1     Running   0          52s

Check CRD

$  kubectl get crd
NAME                                    CREATED AT
clusterflows.logging.banzaicloud.io     2019-11-01T21:30:18Z
clusteroutputs.logging.banzaicloud.io   2019-11-01T21:30:18Z
flows.logging.banzaicloud.io            2019-11-01T21:30:18Z
loggings.logging.banzaicloud.io         2019-11-01T21:30:18Z
outputs.logging.banzaicloud.io          2019-11-01T21:30:18Z