The sample configuration files are only provided as a guide and can be modified as needed.
For this error, check the available APIs from Kubernetes and correct them -
Example:-
The below command returns the API version for Network policies as "networking.k8s.io/v1".
# kubectl api-resources
NAME SHORTNAMES APIVERSION NAMESPACED KIND
bindings v1 true Binding
componentstatuses cs v1 false ComponentStatus
…..
prioritylevelconfigurations flowcontrol.apiserver.k8s.io/v1beta2 false PriorityLevelConfiguration
ingressclasses networking.k8s.io/v1 false IngressClass
ingresses ing networking.k8s.io/v1 true Ingress
networkpolicies netpol networking.k8s.io/v1 true NetworkPolicy
runtimeclasses node.k8s.io/v1 false RuntimeClass
Replace the Network policy API with the networking.k8s.io/v1 in the bpm-ingress.yaml file -
*****bpm-ingress.yaml *******
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: "bpm-ingress"
namespace: bpm
..........