-
Notifications
You must be signed in to change notification settings - Fork 172
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
caa2ba6
commit dcbf0f1
Showing
7 changed files
with
130 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
--- | ||
version: 3.3.0 | ||
--- | ||
|
||
# Define resource quotas for namespaces | ||
|
||
You can define namespaces to be used in your cluster. If they don't exist, Helmsman will create them for you. You can also define how much resource limits to set for each namespace. | ||
|
||
You can read more about the `Quotas` specification [here](https://kubernetes.io/docs/tasks/administer-cluster/manage-resources/quota-memory-cpu-namespace/#create-a-resourcequota). | ||
|
||
```toml | ||
#... | ||
[namespaces] | ||
|
||
[namespaces.helmsman1] | ||
|
||
[namespaces.helmsman1.quotas] | ||
"limits.cpu" = "10" | ||
"limits.memory" = "30Gi" | ||
pods = "25" | ||
"requests.cpu" = "10" | ||
"requests.memory" = "30Gi" | ||
|
||
[[namespaces.helmsman1.quotas.customQuotas]] | ||
name = "requests.nvidia.com/gpu" | ||
value = "2" | ||
#... | ||
``` | ||
|
||
```yaml | ||
namespaces: | ||
helmsman1: | ||
quotas: | ||
limits.cpu: '10' | ||
limits.memory: '30Gi' | ||
pods: '25' | ||
requests.cpu: '10' | ||
requests.memory: '30Gi' | ||
customQuotas: | ||
- name: 'requests.nvidia.com/gpu' | ||
value: '2' | ||
``` | ||
The example above will create one namespace - helmsman1 - with resource quotas defined for the helmsman1 namespace. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters