mhausenblas / kboom

The Kubernetes scale & soak load tester
Apache License 2.0
304 stars 24 forks source link

[BUG] Running on OpenShift gives #15

Open saintdle opened 2 years ago

saintdle commented 2 years ago

Describe the bug

Installed as per the readme.

Running kboom in OpenShift fails due to the SSC

kubectl kboom generate --mode=scale:14 --load=pods:100

kubectl kboom results

2021/12/08 17:18:52 Can't create pod scale-sleeper-19: kubernetes api: Failure 403 pods "scale-sleeper-19" is forbidden: unable to validate against any security context constraint: [spec.containers[0].securityContext.runAsUser: Invalid value: 65534: must be in the ranges: [1000690000, 1000699999]]

To Reproduce

OpenShift 4.7

Expected behavior Successful run

Additional context

OpenShift uses a security context, which is what is being referenced. https://docs.openshift.com/container-platform/4.7/cicd/pipelines/using-pods-in-a-privileged-security-context.html

mhausenblas commented 2 years ago

I'm not actively maintaining this project anymore, sorry for the confusion.