cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

error of deploy oneAgent operator for OpenShift

MAkimov
Mentor

Hello

we have some error than deploy oneAgent operator for OpenShift

After deploy openshift.yaml we have next error


The server doesn't have a resource type "kind: SecurityContextConstraints, apiVersion: v1".


Could you please tell me the reason for the error and how to fix it ?

3 REPLIES 3

janusz_dabrowsk
Dynatrace Pro
Dynatrace Pro

Hi Mikhail,


What Openshift version do you use ? Do you get that error immediately after you deploy openshift.yaml ? That file deploys Security Context Constraints Object, (lines 911-943)

I would start with OpenShift doc to examine what'g going on there (depending on version of your Openshift platform)




Hello Janusz

OpenShift version - 4.5.6


Error appeared after command

oc apply -f  openshift.yaml

accordingly, the container was not deployed

Hi,

The cluster throws errors that an Object does not exist due to two reasons:

1- it really does not exist,
2- the user does not have the rights to see that object

most likely in your case the user does not have the rights to create those kind of objects

If this is not the reason what you can also try is to edit that excerpt of yaml file changing apiVersion from:

allowedFlexVolumes: null
apiVersion: v1
defaultAddCapabilities: null
fsGroup:
  type: RunAsAny
kind: SecurityContextConstraints

into

allowedFlexVolumes: null
apiVersion: security.openshift.io/v1
defaultAddCapabilities: null
fsGroup:
  type: RunAsAny
kind: SecurityContextConstraints

based on OpenShift 4.5 doc


Featured Posts