Skip to content

Latest commit

 

History

History
89 lines (76 loc) · 3.41 KB

README.md

File metadata and controls

89 lines (76 loc) · 3.41 KB

Requirements

  • Logging operator requires Kubernetes v1.14.x or later.
  • For the Helm base installation you need Helm v2.16.0 or later.

Deploy the Logging operator from Kubernetes Manifests

Complete the following steps to deploy the Logging operator using Kubernetes manifests. Alternatively, you can also install the operator using Helm.

  1. Clone the logging-operator repo.
    git clone [email protected]:banzaicloud/logging-operator.git
  2. Navigate to the logging-operator folder.
    cd logging-operator
  3. Create a controlNamespace called “logging”.
    kubectl create ns logging
  4. Create a ServiceAccount and install cluster roles.
    kubectl -n logging create -f ./docs/deploy/manifests/rbac.yaml
  5. 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
  6. Deploy the Logging operator.
    kubectl -n logging create -f ./docs/deploy/manifests/deployment.yaml

Deploy Logging operator with Helm

Complete the following steps to deploy the Logging operator using Helm. Alternatively, you can also install the operator using Kubernetes manifests.

Note: For the Helm base installation you need Helm v2.16.0 or later.

  1. Add operator chart repository.
    helm repo add banzaicloud-stable https://kubernetes-charts.banzaicloud.com
    helm repo update
  2. Install the Logging Operator
  • Helm v2
    helm install --namespace logging --name logging banzaicloud-stable/logging-operator
  • Helm v3
    kubectl create ns logging
    helm install --namespace logging logging banzaicloud-stable/logging-operator --set createCustomResource=false

    You can install the logging resource with built-in TLS generation using a Helm chart.


Check the Logging operator deployment

To verify that the installation was successful, complete the following steps.

  1. Check the status of the pods. You should see a new logging-operator pod.
    $ kubectl -n logging get pods
    NAME                                        READY   STATUS    RESTARTS   AGE
    logging-logging-operator-599c9cf846-5nw2n   1/1     Running   0          52s
  2. Check the CRDs. You should see the following five new CRDs.
    $  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