Creating alerting rules fail in OCP 4

Solution Verified - Updated -

Issue

  • Cannot create resource definition AlertingRule as shown in create new alerting rules section in documentation.
  • Creating alerting rule shows below error in OpenShift 4:
error: resource mapping not found for name: "example" namespace: "openshift-monitoring" from "testrule": no matches for kind "AlertingRule" in version "monitoring.openshift.io/v1"
ensure CRDs are installed first

Environment

  • Red Hat Openshift Container Platform (RHOCP)
    • 4
  • Alerting Rules (AlertingRule)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content