华为云UCS-k8spspautomountserviceaccounttokenpod:符合策略实例的资源定义
时间:2025-02-12 15:05:17
符合策略实例的资源定义
Pod的automountServiceAccountToken字段设为false,符合策略实例。
apiVersion: v1kind: Podmetadata: name: nginx-automountserviceaccounttoken-allowed labels: app: nginx-not-automountserviceaccounttokenspec: automountServiceAccountToken: false containers: - name: nginx image: nginx
support.huaweicloud.com/usermanual-ucs/ucs_01_0248.html