Skip to content

Commit

Permalink
refactor: default storage size
Browse files Browse the repository at this point in the history
  • Loading branch information
shanewxy committed Nov 8, 2023
1 parent 35d4ee3 commit 98aabcc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,8 @@ No modules.
| <a name="input_context"></a> [context](#input\_context) | Receive contextual information. When Walrus deploys, Walrus will inject specific contextual information into this field.<br><br>Examples:<pre>context:<br> project:<br> name: string<br> id: string<br> environment:<br> name: string<br> id: string<br> resource:<br> name: string<br> id: string</pre> | `map(any)` | `{}` | no |
| <a name="input_infrastructure"></a> [infrastructure](#input\_infrastructure) | Specify the infrastructure information for deploying.<br><br>Examples:<pre>infrastructure:<br> namespace: string, optional<br> image_registry: string, optional</pre> | <pre>object({<br> namespace = optional(string)<br> image_registry = optional(string, "registry-1.docker.io")<br> })</pre> | `{}` | no |
| <a name="input_deployment"></a> [deployment](#input\_deployment) | Specify the deployment action, including architecture and account.<br><br>Examples:<pre>deployment:<br> version: string, optional # https://hub.docker.com/r/bitnami/redis/tags<br> type: string, optional # i.e. standalone, replication<br> password: string, optional</pre> | <pre>object({<br> version = optional(string, "6.0.5")<br> type = optional(string, "standalone")<br> password = optional(string)<br> })</pre> | `{}` | no |
| <a name="input_standalone"></a> [standalone](#input\_standalone) | Specify the configuration of standalone deployment type.<br><br>Examples:<pre>standalone: # one instance<br> resources:<br> requests:<br> cpu: number<br> memory: number # in megabyte<br> limits:<br> cpu: number<br> memory: number # in megabyte<br> storage: # convert to empty dir if null<br> type: ephemeral/persistent<br> ephemeral: # convert to volume claim template<br> class: string<br> access_mode: string<br> size: number, optional # in megabyte<br> persistent: # convert to persistent volume claim<br> name: string</pre> | <pre>object({<br> resources = optional(object({<br> requests = object({<br> cpu = optional(number, 0.25)<br> memory = optional(number, 256)<br> })<br> limits = optional(object({<br> cpu = optional(number, 0)<br> memory = optional(number, 0)<br> }))<br> }), { requests = { cpu = 0.25, memory = 256 } })<br> storage = optional(object({<br> type = optional(string, "ephemeral")<br> ephemeral = optional(object({<br> class = optional(string)<br> access_mode = optional(string, "ReadWriteOnce")<br> size = optional(number)<br> }))<br> persistent = optional(object({<br> name = string<br> }))<br> }))<br> })</pre> | `{}` | no |
| <a name="input_replication"></a> [replication](#input\_replication) | Specify the configuration of replication deployment type.<br><br>Examples:<pre>replication: # four instances: one master, three read-only replicas<br> master:<br> resources:<br> requests:<br> cpu: number<br> memory: number # in megabyte<br> limits:<br> cpu: number<br> memory: number # in megabyte<br> storage: # convert to empty dir if null<br> type: ephemeral/persistent<br> ephemeral: # convert to dynamic claim template<br> class: string<br> access_mode: string<br> size: number, optional # in megabyte<br> persistent: # convert to existing volume claim<br> name: string # the name of persistent volume claim<br> replicas:<br> resources:<br> requests:<br> cpu: number<br> memory: number # in megabyte<br> limits:<br> cpu: number<br> memory: number # in megabyte<br> storage: # convert to empty dir if null<br> type: ephemeral/persistent<br> ephemeral: # convert to volume claim template<br> class: string<br> access_mode: string<br> size: number, optional # in megabyte<br> persistent: # convert to persistent volume claim<br> name: string</pre> | <pre>object({<br> master = optional(object({<br> resources = optional(object({<br> requests = object({<br> cpu = optional(number, 0.25)<br> memory = optional(number, 256)<br> })<br> limits = optional(object({<br> cpu = optional(number, 0)<br> memory = optional(number, 0)<br> }))<br> }), { requests = { cpu = 0.25, memory = 256 } })<br> storage = optional(object({<br> type = optional(string, "ephemeral")<br> ephemeral = optional(object({<br> class = optional(string)<br> access_mode = optional(string, "ReadWriteOnce")<br> size = optional(number)<br> }))<br> persistent = optional(object({<br> name = string<br> }))<br> }))<br> }), { requests = { cpu = 0.25, memory = 256 } })<br> replicas = optional(object({<br> resources = optional(object({<br> requests = object({<br> cpu = optional(number, 0.25)<br> memory = optional(number, 256)<br> })<br> limits = optional(object({<br> cpu = optional(number, 0)<br> memory = optional(number, 0)<br> }))<br> }), { requests = { cpu = 0.25, memory = 256 } })<br> storage = optional(object({<br> type = optional(string, "ephemeral")<br> ephemeral = optional(object({<br> class = optional(string)<br> access_mode = optional(string, "ReadWriteOnce")<br> size = optional(number)<br> }))<br> persistent = optional(object({<br> name = string<br> }))<br> }))<br> }), { requests = { cpu = 0.25, memory = 256 } })<br> })</pre> | `{}` | no |
| <a name="input_standalone"></a> [standalone](#input\_standalone) | Specify the configuration of standalone deployment type.<br><br>Examples:<pre>standalone: # one instance<br> resources:<br> requests:<br> cpu: number<br> memory: number # in megabyte<br> limits:<br> cpu: number<br> memory: number # in megabyte<br> storage: # convert to empty dir if null<br> type: ephemeral/persistent<br> ephemeral: # convert to volume claim template<br> class: string<br> access_mode: string<br> size: number, optional # in megabyte<br> persistent: # convert to persistent volume claim<br> name: string</pre> | <pre>object({<br> resources = optional(object({<br> requests = object({<br> cpu = optional(number, 0.25)<br> memory = optional(number, 256)<br> })<br> limits = optional(object({<br> cpu = optional(number, 0)<br> memory = optional(number, 0)<br> }))<br> }), { requests = { cpu = 0.25, memory = 256 } })<br> storage = optional(object({<br> type = optional(string, "ephemeral")<br> ephemeral = optional(object({<br> class = optional(string)<br> access_mode = optional(string, "ReadWriteOnce")<br> size = optional(number, 10 * 1024)<br> }))<br> persistent = optional(object({<br> name = string<br> }))<br> }))<br> })</pre> | `{}` | no |
| <a name="input_replication"></a> [replication](#input\_replication) | Specify the configuration of replication deployment type.<br><br>Examples:<pre>replication: # four instances: one master, three read-only replicas<br> master:<br> resources:<br> requests:<br> cpu: number<br> memory: number # in megabyte<br> limits:<br> cpu: number<br> memory: number # in megabyte<br> storage: # convert to empty dir if null<br> type: ephemeral/persistent<br> ephemeral: # convert to dynamic claim template<br> class: string<br> access_mode: string<br> size: number, optional # in megabyte<br> persistent: # convert to existing volume claim<br> name: string # the name of persistent volume claim<br> replicas:<br> resources:<br> requests:<br> cpu: number<br> memory: number # in megabyte<br> limits:<br> cpu: number<br> memory: number # in megabyte<br> storage: # convert to empty dir if null<br> type: ephemeral/persistent<br> ephemeral: # convert to volume claim template<br> class: string<br> access_mode: string<br> size: number, optional # in megabyte<br> persistent: # convert to persistent volume claim<br> name: string</pre> | <pre>object({<br> master = optional(object({<br> resources = optional(object({<br> requests = object({<br> cpu = optional(number, 0.25)<br> memory = optional(number, 256)<br> })<br> limits = optional(object({<br> cpu = optional(number, 0)<br> memory = optional(number, 0)<br> }))<br> }), { requests = { cpu = 0.25, memory = 256 } })<br> storage = optional(object({<br> type = optional(string, "ephemeral")<br> ephemeral = optional(object({<br> class = optional(string)<br> access_mode = optional(string, "ReadWriteOnce")<br> size = optional(number, 10 * 1024)<br> }))<br> persistent = optional(object({<br> name = string<br> }))<br> }))<br> }), { requests = { cpu = 0.25, memory = 256 } })<br> replicas = optional(object({<br> resources = optional(object({<br> requests = object({<br> cpu = optional(number, 0.25)<br> memory = optional(number, 256)<br> })<br> limits = optional(object({<br> cpu = optional(number, 0)<br> memory = optional(number, 0)<br> }))<br> }), { requests = { cpu = 0.25, memory = 256 } })<br> storage = optional(object({<br> type = optional(string, "ephemeral")<br> ephemeral = optional(object({<br> class = optional(string)<br> access_mode = optional(string, "ReadWriteOnce")<br> size = optional(number, 10 * 1024)<br> }))<br> persistent = optional(object({<br> name = string<br> }))<br> }))<br> }), { requests = { cpu = 0.25, memory = 256 } })<br> })</pre> | `{}` | no |

## Outputs

Expand Down
6 changes: 3 additions & 3 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ EOF
ephemeral = optional(object({
class = optional(string)
access_mode = optional(string, "ReadWriteOnce")
size = optional(number)
size = optional(number, 10 * 1024)
}))
persistent = optional(object({
name = string
Expand Down Expand Up @@ -183,7 +183,7 @@ EOF
ephemeral = optional(object({
class = optional(string)
access_mode = optional(string, "ReadWriteOnce")
size = optional(number)
size = optional(number, 10 * 1024)
}))
persistent = optional(object({
name = string
Expand All @@ -206,7 +206,7 @@ EOF
ephemeral = optional(object({
class = optional(string)
access_mode = optional(string, "ReadWriteOnce")
size = optional(number)
size = optional(number, 10 * 1024)
}))
persistent = optional(object({
name = string
Expand Down

0 comments on commit 98aabcc

Please sign in to comment.