27 Jun 2022 03:21 PM
Hi,
Iam trying to Integrate Dynatrace with openshift using dynatrace operator appraoch.
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"
Thanks.
Solved! Go to Solution.
27 Jun 2022 06:34 PM
Feels like your user is not allowed to create new projects (namespaces) into the Cluster.
Can you confirm if your user has the proper roles? https://www.dynatrace.com/support/help/shortlink/full-stack-dto-k8#tokens