Skip to content

Commit 79f8442

Browse files
mglotovMax Glotov
andauthored
enh: delete cpu.limits from the limitrange configuration (#346)
* enh: delete cpu.limits from the limitrange configuration * updated FAQ --------- Co-authored-by: Max Glotov <max@maddevs.io>
1 parent bb70b6c commit 79f8442

File tree

3 files changed

+21
-29
lines changed

3 files changed

+21
-29
lines changed

docs/FAQ.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ We strongly recommend using our terraform module `kubernetes-namespace` to manag
4343
{
4444
type = "Container"
4545
default = {
46-
cpu = "150m"
4746
memory = "128Mi"
4847
}
4948
default_request = {
Lines changed: 21 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,42 @@
1-
<!-- BEGIN_TF_DOCS -->
21
## Requirements
32

43
No requirements.
54

65
## Providers
76

8-
| Name | Version |
9-
| ---------------------------------------------------------------------- | ------- |
10-
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | n/a |
7+
| Name | Version |
8+
|------|---------|
9+
| <a name="provider_kubernetes"></a> [kubernetes](#provider\_kubernetes) | n/a |
1110

1211
## Modules
1312

1413
No modules.
1514

1615
## Resources
1716

18-
| Name | Type |
19-
| ----------------------------------------------------------------------------------------------------------------------------------- | -------- |
20-
| [kubernetes_limit_range.this](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/limit_range) | resource |
21-
| [kubernetes_namespace.this](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace) | resource |
17+
| Name | Type |
18+
|------|------|
19+
| [kubernetes_limit_range.this](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/limit_range) | resource |
20+
| [kubernetes_namespace.this](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace) | resource |
2221
| [kubernetes_network_policy.this](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/network_policy) | resource |
2322
| [kubernetes_resource_quota.this](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/resource_quota) | resource |
2423

2524
## Inputs
2625

27-
| Name | Description | Type | Default | Required |
28-
| ------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------- | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | :------: |
29-
| <a name="input_annotations"></a> [annotations](#input\_annotations) | An unstructured key value map stored with the namespace that may be used to store arbitrary metadata | `map(any)` | `{}` | no |
30-
| <a name="input_depends"></a> [depends](#input\_depends) | Indicates the resource this resource depends on. | `any` | `null` | no |
31-
| <a name="input_enable"></a> [enable](#input\_enable) | If set to true, create namespace | `bool` | `true` | no |
32-
| <a name="input_labels"></a> [labels](#input\_labels) | Map of string keys and values that can be used to organize and categorize (scope and select) namespaces. | `map(any)` | `{}` | no |
33-
| <a name="input_limits"></a> [limits](#input\_limits) | n/a | `any` | <pre>[<br> {<br> "default": {<br> "cpu": "150m",<br> "memory": "128Mi"<br> },<br> "default_request": {<br> "cpu": "100m",<br> "memory": "64Mi"<br> },<br> "type": "Container"<br> }<br>]</pre> | no |
34-
| <a name="input_name"></a> [name](#input\_name) | Name of the namespace, must be unique. Cannot be updated. | `string` | n/a | yes |
35-
| <a name="input_network_policies"></a> [network\_policies](#input\_network\_policies) | n/a | `any` | `[]` | no |
36-
| <a name="input_resource_quotas"></a> [resource\_quotas](#input\_resource\_quotas) | n/a | `any` | `[]` | no |
26+
| Name | Description | Type | Default | Required |
27+
|------|-------------|------|---------|:--------:|
28+
| <a name="input_annotations"></a> [annotations](#input\_annotations) | An unstructured key value map stored with the namespace that may be used to store arbitrary metadata | `map(any)` | `{}` | no |
29+
| <a name="input_depends"></a> [depends](#input\_depends) | Indicates the resource this resource depends on. | `any` | `null` | no |
30+
| <a name="input_enable"></a> [enable](#input\_enable) | If set to true, create namespace | `bool` | `true` | no |
31+
| <a name="input_labels"></a> [labels](#input\_labels) | Map of string keys and values that can be used to organize and categorize (scope and select) namespaces. | `map(any)` | `{}` | no |
32+
| <a name="input_limits"></a> [limits](#input\_limits) | n/a | `any` | <pre>[<br> {<br> "default": {<br> "memory": "128Mi"<br> },<br> "default_request": {<br> "cpu": "100m",<br> "memory": "64Mi"<br> },<br> "type": "Container"<br> }<br>]</pre> | no |
33+
| <a name="input_name"></a> [name](#input\_name) | Name of the namespace, must be unique. Cannot be updated. | `string` | n/a | yes |
34+
| <a name="input_network_policies"></a> [network\_policies](#input\_network\_policies) | n/a | `any` | `[]` | no |
35+
| <a name="input_resource_quotas"></a> [resource\_quotas](#input\_resource\_quotas) | n/a | `any` | `[]` | no |
3736

3837
## Outputs
3938

40-
| Name | Description |
41-
| ----------------------------------------------------------------------- | -------------------------------------------------------- |
42-
| <a name="output_labels_name"></a> [labels\_name](#output\_labels\_name) | The value of the name label |
43-
| <a name="output_name"></a> [name](#output\_name) | The name of the created namespace (from object metadata) |
44-
<!-- END_TF_DOCS -->
45-
46-
47-
48-
# More details about using this module can be found [here](../../../docs/FAQ.md#k8s-namespace-features)
39+
| Name | Description |
40+
|------|-------------|
41+
| <a name="output_labels_name"></a> [labels\_name](#output\_labels\_name) | The value of the name label |
42+
| <a name="output_name"></a> [name](#output\_name) | The name of the created namespace (from object metadata) |

terraform/modules/eks-kubernetes-namespace/variables.tf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ variable "limits" {
3333
{
3434
type = "Container"
3535
default = {
36-
cpu = "150m"
3736
memory = "128Mi"
3837
}
3938
default_request = {

0 commit comments

Comments
 (0)