16 Sep 2020 01:22 PM
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 ?
Solved! Go to Solution.
17 Sep 2020 07:10 AM
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)
17 Sep 2020 08:07 AM
Hello Janusz
OpenShift version - 4.5.6
Error appeared after command
oc apply -f openshift.yaml
accordingly, the container was not deployed
17 Sep 2020 09:27 AM
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