You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Our documentation notes that you need to add the serviceAccount to the hostaccessSCC to allow Elastic Agent to function in Openshift environments. Unfortunately this seems to be insufficient, as errors similar to the following:
[
provider "anyuid": Forbidden: not usable by user or serviceaccount, spec.containers[0].securityContext.runAsUser: Invalid value: 0: must be in the ranges: [1000670000, 1000679999],
provider "restricted": Forbidden: not usable by user or serviceaccount,
provider "nonroot-v2": Forbidden: not usable by user or serviceaccount,
provider "nonroot": Forbidden: not usable by user or serviceaccount,
provider "hostmount-anyuid": Forbidden: not usable by user or serviceaccount,
provider "machine-api-termination-handler": Forbidden: not usable by user or serviceaccount,
provider "hostnetwork-v2": Forbidden: not usable by user or serviceaccount,
provider "hostnetwork": Forbidden: not usable by user or serviceaccount,
provider "node-exporter": Forbidden: not usable by user or serviceaccount,
provider "privileged": Forbidden: not usable by user or serviceaccount
]
Our documentation notes that you need to add the
serviceAccount
to thehostaccess
SCC
to allow Elastic Agent to function in Openshift environments. Unfortunately this seems to be insufficient, as errors similar to the following:This is using an example such as: fleet-kubernetes-integration, which uses the following:
Where the
hostNetwork: true
,runasuser: 0
, and 'privileged: true` do not seem to be allowed. There seem to be 2 options:serviceAccount
to theprivileged
SCC
. (oc adm policy add-scc-to-user privileged -z elastic-agent -n your-namespace
)SCC
, such as:Which allows the Agent to run properly. We should update our documentation to be more clear in this area.
The text was updated successfully, but these errors were encountered: