Skip to content

Commit e034294

Browse files
committed
better README
1 parent f0bd7e3 commit e034294

File tree

4 files changed

+51
-8
lines changed

4 files changed

+51
-8
lines changed

README.md

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Qdrant Terraform Module
22

3-
[![Terraform Registry URL](https://img.shields.io/badge/terraform-%235835CC.svg?style=for-the-badge&logo=terraform&logoColor=white)](https://registry.terraform.io/modules/ilert/qdrant/kubernetes/latest)
3+
[![Terraform Registry URL](https://img.shields.io/badge/terraform-%235835CC.svg?style=for-the-badge&logo=terraform&logoColor=white)](https://registry.terraform.io/modules/iLert/qdrant/kubernetes/latest)
44

55
Terraform module to deploy Qdrant vector DB on kubernetes
66

@@ -12,7 +12,7 @@ Create a `main.tf` file with the following content:
1212

1313
```terraform
1414
module "qdrant" {
15-
source = "ilert/qdrant/kubernetes"
15+
source = "iLert/qdrant/kubernetes"
1616
version = "0.1.0"
1717
name = "qdrant"
1818
namespace = "default"
@@ -27,3 +27,24 @@ terraform init
2727
terraform apply
2828
```
2929

30+
## Modules
31+
32+
No modules.
33+
34+
## Inputs
35+
36+
| Name | Description | Type | Default | Required |
37+
| ------------------------------------------------------------------------ | --------------------------------------- | -------- | --------- | :------: |
38+
| <a name="input_name"></a> [name](#input\_name) | Kubernetes resources name | `string` | `qdrant` | no |
39+
| <a name="input_namespace"></a> [namespace](#input\_namespace) | Kubernetes namespace | `string` | `default` | no |
40+
| <a name="input_replicas"></a> [replicas](#input\_replicas) | Replicas count for the Qdrant instances | `number` | `2` | no |
41+
| <a name="input_memory_limit"></a> [memory\_limit](#input\_memory\_limit) | Memory limit for the Qdrant instances | `string` | `128Mi` | no |
42+
| <a name="input_storage_size"></a> [storage\_size](#input\_storage\_size) | Storage size for the Qdrant instances | `string` | `10Gi` | no |
43+
44+
## Outputs
45+
46+
| Name | Description |
47+
| --------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
48+
| <a name="output_service_name"></a> [service\_name](#output\_service\_name) | The name of the Qdrant service in the kubernetes namespace |
49+
| <a name="output_api_key"></a> [api\_key](#output\_api\_key) | The generated api key for the Qdrant API |
50+
| <a name="output_read_only_api_key"></a> [read\_only\_api\_key](#output\_read\_only\_api\_key) | The generated read only api key for the Qdrant API |

output.tf

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
output "service_name" {
2+
value = kubernetes_service.this.metadata[0].name
3+
description = "The name of the Qdrant service in the kubernetes namespace"
4+
}
5+
6+
output "api_key" {
7+
value = random_password.qdrant-api-key.result
8+
description = "The generated api key for the Qdrant API"
9+
}
10+
11+
output "read_only_api_key" {
12+
value = random_password.qdrant-read-only-api-key.result
13+
description = "The generated read only api key for the Qdrant API"
14+
}

statefulset.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,11 @@ resource "kubernetes_stateful_set" "this" {
123123
value = "/qdrant/init/.qdrant-initialized"
124124
}
125125

126+
# env {
127+
# name = "QDRANT__TELEMETRY_DISABLED"
128+
# value = "true"
129+
# }
130+
126131
lifecycle {
127132
pre_stop {
128133
exec {

variables.tf

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,16 +11,19 @@ variable "name" {
1111
}
1212

1313
variable "replicas" {
14-
type = number
15-
default = 2
14+
type = number
15+
description = "Replicas count for the Qdrant instances"
16+
default = 2
1617
}
1718

1819
variable "memory_limit" {
19-
type = string
20-
default = "128Mi"
20+
type = string
21+
description = "Memory limit for the Qdrant instances"
22+
default = "128Mi"
2123
}
2224

2325
variable "storage_size" {
24-
type = string
25-
default = "10Gi"
26+
type = string
27+
description = "Storage size for the Qdrant instances"
28+
default = "10Gi"
2629
}

0 commit comments

Comments
 (0)