SecurityContext
Container-level Security Context
apiVersion: v1
kind: Pod
metadata:
name: hello-world
spec:
containers:
- name: hello-world-container
# The container definition
# ...
securityContext:
privileged: truePod-level Security Context
Supplemental Groups Policy(补充组策略)
背景:容器镜像中的隐式组成员身份
supplementalGroupsPolicy 字段
示例:使用 Strict 策略
CRI 运行时要求
Beta 版本的行为变化
Pod 状态中的进程身份信息
User Namespaces(用户命名空间)
启用用户命名空间
安全优势
系统要求
兼容性说明
示例配置
Pod Security Policies(PSP)
API 版本对照表
Kubernetes 版本
Extension 版本
支持的控制项
控制项
说明
示例
SELinux
开启与关闭 SELinux
示例
参考文档
最后更新于