Skip to content

Commit bd307bb

Browse files
thxCodeshanewxy
authored andcommitted
refactor: modify default service type
Signed-off-by: thxCode <thxcode0824@gmail.com>
1 parent 99b665f commit bd307bb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ No modules.
6363
| <a name="input_architecture"></a> [architecture](#input\_architecture) | Specify the deployment architecture, select from standalone or replication. | `string` | `"standalone"` | no |
6464
| <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 |
6565
| <a name="input_engine_version"></a> [engine\_version](#input\_engine\_version) | Specify the deployment engine version, select from https://hub.docker.com/r/bitnami/redis/tags. | `string` | `"7.0"` | no |
66-
| <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<br> domain_suffix: string, optional<br> service_type: string, optional</pre> | <pre>object({<br> namespace = optional(string)<br> image_registry = optional(string, "registry-1.docker.io")<br> domain_suffix = optional(string, "cluster.local")<br> service_type = optional(string, "NodePort")<br> })</pre> | `{}` | no |
66+
| <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<br> domain_suffix: string, optional<br> service_type: string, optional</pre> | <pre>object({<br> namespace = optional(string)<br> image_registry = optional(string, "registry-1.docker.io")<br> domain_suffix = optional(string, "cluster.local")<br> service_type = optional(string, "ClusterIP")<br> })</pre> | `{}` | no |
6767
| <a name="input_password"></a> [password](#input\_password) | Specify the account password. The password must be 16-32 characters long and start with any letter, number, or the following symbols: ! # $ % ^ & * ( ) \_ + - =.<br>If not specified, it will generate a random password. | `string` | `null` | no |
6868
| <a name="input_replication_readonly_replicas"></a> [replication\_readonly\_replicas](#input\_replication\_readonly\_replicas) | Specify the number of read-only replicas under the replication deployment. | `number` | `1` | no |
6969
| <a name="input_resources"></a> [resources](#input\_resources) | Specify the computing resources.<br><br>Examples:<pre>resources:<br> cpu: number, optional<br> memory: number, optional # in megabyte</pre> | <pre>object({<br> cpu = optional(number, 0.25)<br> memory = optional(number, 1024)<br> })</pre> | <pre>{<br> "cpu": 0.25,<br> "memory": 1024<br>}</pre> | no |

schema.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ components:
4040
hidden: true
4141
order: 1
4242
service_type:
43-
default: NodePort
43+
default: ClusterIP
4444
description: |
45-
Specify the service type of the Kubernetes cluster, default is `NodePort`.
45+
Specify the service type of the Kubernetes cluster, default is `ClusterIP`.
4646
enum:
4747
- NodePort
4848
- LoadBalancer

variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ EOF
4545
namespace = optional(string)
4646
image_registry = optional(string, "registry-1.docker.io")
4747
domain_suffix = optional(string, "cluster.local")
48-
service_type = optional(string, "NodePort")
48+
service_type = optional(string, "ClusterIP")
4949
})
5050
default = {}
5151
}

0 commit comments

Comments
 (0)