Error CNF135026: "CNF upgrade failed: error while running post render on files: unable to build kubernetes objects from release manifest unable to recognize "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1", Events , Log"
search cancel

Error CNF135026: "CNF upgrade failed: error while running post render on files: unable to build kubernetes objects from release manifest unable to recognize "": no matches for kind "ServiceMonitor" in version "monitoring.coreos.com/v1", Events , Log"

book

Article ID: 390342

calendar_today

Updated On:

Products

VMware Telco Cloud Automation

Issue/Introduction

  • CNF upgrade fails while configuring helm

Environment

2.x, 3.x

Cause

  • Error is due to a missing prometheus service monitor CRD.

Resolution

  1. Run the following command to confirm the prometheus service monitor is not installed.
    kubectl get crds | grep servicemonitors
    kubectl api-resources | grep servicemonitors
  2. The CNF instantiation has dependencies with Service Monitor CRDs, which should be included in the CSAR.
  3. Contact the CNF vendor for the missing prometheus-operator CRD.

 

Additional Information

For non-airgapped environments:

kubectl apply -f https://raw.githubusercontent.com/prometheus-operator/prometheus-operator/main/example/prometheus-operator-crd/monitoring.coreos.com_servicemonitors.yaml