Skip to content

Commit

Permalink
Merge pull request kubernetes#2016 from CaoShuFeng/pod-priority-resou…
Browse files Browse the repository at this point in the history
…rcequota

fix AdmissionConfiguration yaml format
  • Loading branch information
k8s-ci-robot authored Apr 9, 2018
2 parents 29ac6bc + 0042f1c commit c5173d5
Showing 1 changed file with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,12 +141,12 @@ kind: AdmissionConfiguration
plugins:
- name: "ResourceQuota"
configuration:
apiVersion: resourcequota.admission.k8s.io/v1alpha1
kind: Configuration
limitedResources:
- resource: pods
matchScopes:
- "ResourceQuotaScopePriorityClassNameIn:cluster-services"
apiVersion: resourcequota.admission.k8s.io/v1alpha1
kind: Configuration
limitedResources:
- resource: pods
matchScopes:
- "ResourceQuotaScopePriorityClassNameIn:cluster-services"
```
2. Admin will then create a corresponding resource quota object in `kube-system` namespace:
Expand All @@ -172,12 +172,12 @@ kind: AdmissionConfiguration
plugins:
- name: "ResourceQuota"
configuration:
apiVersion: resourcequota.admission.k8s.io/v1alpha1
kind: Configuration
limitedResources:
- resource: pods
matchScopes:
- "ResourceQuotaScopePriorityClassNameExists"
apiVersion: resourcequota.admission.k8s.io/v1alpha1
kind: Configuration
limitedResources:
- resource: pods
matchScopes:
- "ResourceQuotaScopePriorityClassNameExists"
```

2. Create resource quota to match all pods where there is priority set
Expand Down

0 comments on commit c5173d5

Please sign in to comment.