-
Notifications
You must be signed in to change notification settings - Fork 6
Add lgalloc support #36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
f04c0eb
310b34f
8f767b2
fd5a74e
662187a
1ba2b5e
40043b1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -249,11 +249,9 @@ resource "kubernetes_daemonset" "disk_setup" { | |
|
|
||
| resources { | ||
| limits = { | ||
| cpu = "200m" | ||
| memory = "256Mi" | ||
| memory = "128Mi" | ||
| } | ||
| requests = { | ||
| cpu = "100m" | ||
| memory = "128Mi" | ||
| } | ||
| } | ||
|
Comment on lines
+250
to
+261
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Memory requests and limits should always be equal. CPU limits are generally frowned upon, as CPU can be returned extremely quickly. In the case of this bootstrap script, it will likely be idle for most of the time, so limiting CPU is likely not helpful. |
||
|
|
@@ -278,6 +276,11 @@ resource "kubernetes_daemonset" "disk_setup" { | |
| name = "mnt" | ||
| mount_path = "/mnt" | ||
| } | ||
|
|
||
| volume_mount { | ||
| name = "dev" | ||
| mount_path = "/dev" | ||
| } | ||
| } | ||
|
|
||
| container { | ||
|
|
@@ -286,11 +289,9 @@ resource "kubernetes_daemonset" "disk_setup" { | |
|
|
||
| resources { | ||
| limits = { | ||
| cpu = "50m" | ||
| memory = "64Mi" | ||
| memory = "32Mi" | ||
| } | ||
| requests = { | ||
| cpu = "10m" | ||
| memory = "32Mi" | ||
| } | ||
| } | ||
|
|
@@ -318,6 +319,13 @@ resource "kubernetes_daemonset" "disk_setup" { | |
| path = "/mnt" | ||
| } | ||
| } | ||
|
|
||
| volume { | ||
| name = "dev" | ||
| host_path { | ||
| path = "/dev" | ||
| } | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -221,10 +221,6 @@ variable "disk_support_config" { | |
| openebs_namespace = optional(string, "openebs") | ||
| storage_class_name = optional(string, "openebs-lvm-instance-store-ext4") | ||
| storage_class_provisioner = optional(string, "local.csi.openebs.io") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The storage_class_provisioner should be constant. |
||
| storage_class_parameters = optional(object({ | ||
| storage = optional(string, "lvm") | ||
| volgroup = optional(string, "instance-store-vg") | ||
| }), {}) | ||
| }) | ||
| default = {} | ||
| } | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We still want at least some cpu request.