Skip to content

SumoLogic/sumologic-kubernetes-collection-helm-operator

Repository files navigation

sumologic-kubernetes-collection-helm-operator

Sumo Logic Kubernetes Collection Helm Operator for the Sumo Logic Kubernetes Collection Helm Chart.

Supported platforms:

Sumo Logic Kubernetes Collection Helm Operator version OpenShift version
v2.19.1-0 4.11
4.12 special configuration for OpenShift v4.12
v2.17.0-0 4.8
4.9
4.10
v2.1.4-0 4.6
4.7

Note: using Sumo Logic Kubernetes Collection Helm Operator on OpenShift v4.12 requires special configuration with PodSecurityPolicy disabled becausePodSecurityPolicy was completely removed on Kubernetes 1.25+.

Following changes needs to be added to configuration to use Sumo Logic Kubernetes Collection Helm Operator on OpenShift v4.12:

kube-prometheus-stack:
  global:
    rbac:
      pspEnabled: false
  kube-state-metrics:
    podSecurityPolicy:
      enabled: false
  prometheus-node-exporter:
    rbac:
      pspEnabled: false

Example configuration for Sumo Logic Kubernetes Collection Helm Operator on OpenShift v4.12 is available here.

Installation

Prerequisites

Configuration

Configuration for Sumo Logic Kubernetes Collection Helm Operator needs to be provided in SumologicCollection resource. Custom Resource Definition for SumologicCollection is defined in helm-operator.sumologic.com_sumologiccollections.yaml.

SumologicCollection.spec allows to configure all parameters from values.yaml for the Sumo Logic Kubernetes Collection Helm Chart. All possible parameters with descriptions can be found in Configuration section for Sumo Logic Kubernetes Collection Helm Chart.

Example configurations for Sumo Logic Kubernetes Collection Helm Operator are available in config/samples directory.

Installation from Red Hat Marketplace

Detailed instruction for installation from Red Hat Marketplace is available in this documentation.

Installation using bundle.yaml

  • Deploy Sumo Logic Kubernetes Collection Helm Operator using bundle.yaml

    kubectl apply -f bundle.yaml
  • Create SumologicCollection resource with proper configuration, see Configuration section, e.g.

    kubeclt apply -f config/samples/default_openshift.yaml

Verification

Verify that Pod related to Sumologic Kubernetes Collection are running, for default configuration you should see similar list of Pods:

$ kubectl get pods -n openshift-operators
NAME                                                   READY   STATUS    RESTARTS   AGE
collection-fluent-bit-2hgvs                            1/1     Running   0          3m42s
collection-fluent-bit-2slb4                            1/1     Running   0          3m42s
collection-fluent-bit-4p2km                            1/1     Running   0          3m42s
collection-fluent-bit-5rkwn                            1/1     Running   0          3m42s
collection-fluent-bit-7mpsl                            1/1     Running   0          3m41s
collection-fluent-bit-fzvzv                            1/1     Running   0          3m42s
collection-fluent-bit-j4xbh                            1/1     Running   0          3m41s
collection-fluent-bit-qvklb                            1/1     Running   0          3m42s
collection-kube-prometheus-operator-7dddffd7cf-jp4qp   1/1     Running   0          3m42s
collection-kube-state-metrics-864f877555-khjzv         1/1     Running   0          3m42s
collection-prometheus-node-exporter-5smcs              1/1     Running   0          3m42s
collection-prometheus-node-exporter-6qd6b              1/1     Running   0          3m41s
collection-prometheus-node-exporter-8gl59              1/1     Running   0          3m41s
collection-prometheus-node-exporter-g67ws              1/1     Running   0          3m41s
collection-prometheus-node-exporter-hgfsw              1/1     Running   0          3m41s
collection-prometheus-node-exporter-qpnfv              1/1     Running   0          3m42s
collection-prometheus-node-exporter-xkcjn              1/1     Running   0          3m42s
collection-prometheus-node-exporter-z6z9b              1/1     Running   0          3m41s
collection-sumologic-fluentd-events-0                  1/1     Running   0          3m41s
collection-sumologic-fluentd-logs-0                    1/1     Running   0          3m41s
collection-sumologic-fluentd-logs-1                    1/1     Running   0          3m41s
collection-sumologic-fluentd-logs-2                    1/1     Running   0          3m41s
collection-sumologic-fluentd-metrics-0                 1/1     Running   0          3m41s
collection-sumologic-fluentd-metrics-1                 1/1     Running   0          3m41s
collection-sumologic-fluentd-metrics-2                 1/1     Running   0          3m41s
prometheus-collection-kube-prometheus-prometheus-0     3/3     Running   1          3m22s
sumologic-helm-operator-84678d8744-qlclc               2/2     Running   0          64m

Viewing Data In Sumo Logic

Once you have completed installation, you can install the Kubernetes App and view the dashboards or open a new Explore tab in Sumo Logic.

License

This project is released under the Apache 2.0 License.

Contributing

Please refer to our Contributing documentation to get started.