华为云UCS-k8spspseccomp:符合策略实例的资源定义

时间:2024-09-12 15:06:02

符合策略实例的资源定义

示例中的container.seccomp.security.alpha.kubernetes.io/nginx注解的value在设定的值列表中,符合策略定义。

apiVersion: v1
kind: Pod
metadata:
  name: nginx-seccomp-allowed
  annotations:
    container.seccomp.security.alpha.kubernetes.io/nginx: runtime/default
  labels:
    app: nginx-seccomp
spec:
  containers:
  - name: nginx
    image: nginx
support.huaweicloud.com/usermanual-ucs/ucs_01_0218.html