27 Jun 2022 07:25 AM - last edited on 27 Jun 2022 10:25 PM by MaciejNeumann
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.
You might want to check that with RedHat. However, I was able to find this document. Hope this helps:
Thanks for reply.
In sandbox openshift free trail Iam not getting any option add user as cluster-admin/admin.
I connect with this user "goudareddy26" , this user doesnt allow to run below commands.
I dont have redhat subscription to get further support from Redhat.