华为云UCS-k8sblockloadbalancer:策略实例示例

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

策略实例示例

apiVersion: constraints.gatekeeper.sh/v1beta1
kind: K8sBlockLoadBalancer
metadata:
  name: block-load-balancer
spec:
  match:
    kinds:
      - apiGroups: [""]
        kinds: ["Service"]
    excludedNamespaces:
      - "ingress-nginx-private"
      - "ingress-nginx-public"
support.huaweicloud.com/usermanual-ucs/ucs_01_0246.html