Creating alerting rules fail in OCP 4
Issue
- Cannot create resource definition
AlertingRuleas 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.