Kubernetes Events

Kubernetes Events

Send relevant events from the Kubernetes control plane (e.g. new image deployments, pod crashes, etc.) to Cardinal.

Kubernetes Events are pulled from the Kubernetes API server by a Cardinal OpenTelemetry Collector. To avoid sourcing duplicate events, this should be deployed as a single-Pod Collector, separate from your other Collector(s).

1. Deploy a single-Pod Collector

  1. Sign-in to Cardinal, (opens in a new tab) and select the Pipelines tab in the left sidebar.
  2. Click the Add a Collector... button.
  3. Give your Collector a descriptive name (e.g. k8s-events-collector), and click the Add Collector button.
  4. Follow Steps 1-2 on the screen to create a Kubernetes Secret for your Cardinal API key, and apply the manifest to deploy your new Collector. (IMPORTANT: Set the replicas in the manifest to 1, as shown below, to avoid sourcing duplicate events.)
apiVersion: collector.cardinalhq.io/v1alpha1
kind: Collector
metadata:
  name: k8s-events-collector
spec:
  collectorName: k8s-events-collector
  apiKeySecretRef: k8s-events-collector-api-key
  replicas: 1
  cpu: "0.5"
  memory: "256Mi"

2. Configure the Pipeline

  1. Continue with Step 3 on the screen, and click the Add your first Source... button.
  2. Select the Kubernetes Events Source, and add it to your Pipeline.
  3. Click the Add a Destination... button.
  4. Select the Kubernetes Events Destination, and add it to your Pipeline.

Kubernetes Events Pipeline