Issue
Kubernetes events are not visible in the OpsRamp portal, even though the Kubernetes 2.0 agent pods are running.
Cause
- Events not Enabled
- During Kubernetes 2.0 installation, the kube events option was not enabled.
- The integration manifest does not have
kubeEvents.enabledset totrue.
- OpenTelemetry Pipeline not Running
- The Kubernetes 2.0 agent uses the OpenTelemetry pipeline to fetch cluster events. If the pipeline fails to start, events will not be collected.
- ConfigMap Restrictions
- The
opsramp-k8s-events-user-configConfigMap may be excluding specific event types or namespaces. - Events collection can be disabled or limited by configuration.
- The
Solution
- Enable Events in Manifest
- Edit the manifest and set
kubeEvents.enabledtotrue.kubeEvents: enabled: true
- Edit the manifest and set
- Verify Pipeline Status
- Check the agent logs to confirm the OpenTelemetry pipeline for events has started successfully.
- Review ConfigMap for Events
- Edit the ConfigMap if you need to include or exclude specific events:
kubectl edit configmap opsramp-k8s-events-user-config -n <namespace> - Add additional event types or re-enable disabled ones as needed.
- Edit the ConfigMap if you need to include or exclude specific events:
- Cross-check in Portal
- Navigate to the Logs section in the OpsRamp portal.
- Use the Filter > Type = Events option to view Kubernetes events.