27 Jun 2022 03:25 PM - last edited on 28 Jun 2022 06:25 AM by MaciejNeumann
Hi,
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"
28 Jun 2022 01:26 AM
Hi @Gogi,
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.
Kind regards,
Abhi
28 Jun 2022 09:12 AM
Hi Abhi,
Thanks for reply, Iam using openshift sandbox(free trial), not seeing any option to provide cluster-admin privileges to user "goudareddy26", not sure wheter in free trial this option is present or not.
29 Jun 2022 01:26 AM
You might want to check that with RedHat. However, I was able to find this document. Hope this helps:
04 Jul 2022 12:11 PM
Hi Abhi,
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.