tidb-operator icon indicating copy to clipboard operation
tidb-operator copied to clipboard

How to set container privilege mode?

Open glyslxq opened this issue 2 years ago • 2 comments

I read the document and only support podSecurityContext.

Container level securityContext is not supported.

kubectl explain sts.spec.template.spec.containers.securityContext.privileged

glyslxq avatar Mar 30 '22 02:03 glyslxq

@glyslxq Thanks for reporting this issue! It's not supported yet, would you like to submit PR for this?

DanielZhangQD avatar Mar 30 '22 07:03 DanielZhangQD

I think we can support #4472 issue.

mikechengwei avatar Apr 15 '22 07:04 mikechengwei

Now this feature can use podpatch implement, ref: https://github.com/pingcap/tidb-operator/tree/master/examples/podpatch

mikechengwei avatar Aug 15 '22 13:08 mikechengwei