kubeadmin用户可以创建超出ClusterResourceQuota硬限制的资源吗?

时间:2019-11-24 09:08:38

标签: kubernetes openshift quota

我在openshift集群中创建了以下ClusterResourceQuota

apiVersion: quota.openshift.io/v1
kind: ClusterResourceQuota
metadata:
  name: eight-load-balancer-quota
  resourceVersion: "1158006"
spec:
  quota:
    hard:
      services.loadbalancers: "8"
  selector:
    labels:
      matchExpressions:
      - key: managed.openshift.io/storage-pv-quota-exempt
        operator: DoesNotExist

但是我能够在集群中创建8个以上的负载均衡器(以kubeadmin登录)是预期的吗?

oc --kubeconfig=... describe AppliedClusterResourceQuota
Name:       eight-load-balancer-quota
Created:    2 days ago
Labels:     <none>

Label Selector: !managed.openshift.io/storage-pv-quota-exempt
AnnotationSelector: map[]
Resource        Used    Hard
--------        ----    ----
services.loadbalancers  10  8

docs中我没有看到任何有关这种情况的提示。

0 个答案:

没有答案