-
Notifications
You must be signed in to change notification settings - Fork 171
Description
What happened
Installed Nessie on k8s in Openshift Container Platform (OCP) environment using helm charts.
The below issue is observed on the logs.
message: 'pods "nessie-7d676c98dd-" is forbidden: unable to validate against any
security context constraint: [pod.metadata.annotations[seccomp.security.alpha.kubernetes.io/pod]:
Forbidden: seccomp may not be set, pod.metadata.annotations[container.seccomp.security.alpha.kubernetes.io/nessie]:
Forbidden: seccomp may not be set, provider restricted-v2: .spec.securityContext.fsGroup:
Invalid value: []int64{10001}: 10001 is not an allowed group, provider restricted-v2:
.containers[0].runAsUser: Invalid value: 10000: must be in the ranges: [1000750000,
1000759999], 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 "hostmount-anyuid-v2":
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 "hostaccess": Forbidden: not
usable by user or serviceaccount, provider "insights-runtime-extractor-scc":
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]'
reason: FailedCreate
status: "True"
type: ReplicaFailure
Primarily Nessie expects the runAsUser as 10000 and runAsGroup to be 10001. However OCP Env supports the range only from 1000750000 to 1000759999]
Due to these conflicts, installation fails.
Looking for the fix to successfully install.
How to reproduce it
Installation using helm charts on OCP env.
Nessie server type (docker/uber-jar/built from source) and version
docker image with Nessie helm charts.
Client type (Ex: UI/Spark/pynessie ...) and version
No response
Additional information
No response
#labels