I am trying to Integrate Dynatrace with OpenShift using the Dynatrace operator approach.
Tried to run the below commands and getting error on first command.
please help me to fix this issue.
oc adm new-project --node-selector="" dynatrace
oc apply -f https://github.com/Dynatrace/dynatrace-operator/releases/download/v0.6.0/openshift.yaml
oc -n dynatrace wait pod --for=condition=ready --selector=app.kubernetes.io/name=dynatrace-operator,app.kubernetes.io/component=webhook --timeout=300s
oc apply -f dynakube.yaml
Error from server (Forbidden): projects.project.openshift.io "dynatrace" is forbidden: User "goudareddy26" cannot get resource "projects" in API group "project.openshift.io" in the namespace "dynatrace"
Based on the error, it looks like you were not able to add a Dynatrace project. This might be a restriction on the OpenShift. What I would recommend is to validate if the security context constraints are in place on the Openshift, please find the following document to guide you with the respective steps:
Added I would also like you to double-check if the user - "goudareddy26" has the cluster-admin privileges to execute those commands for deployment.