File tree 2 files changed +9
-3
lines changed
2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ resource "kubernetes_stateful_set" "this" {
11
11
spec {
12
12
service_name = kubernetes_service. this-headless . metadata [0 ]. name
13
13
pod_management_policy = " Parallel"
14
- replicas = var. replicas
14
+ replicas = var. replica_count
15
15
revision_history_limit = 10
16
16
17
17
update_strategy {
@@ -105,7 +105,7 @@ resource "kubernetes_stateful_set" "this" {
105
105
106
106
container {
107
107
name = " qdrant"
108
- image = " docker.io/qdrant/qdrant:v1.8.4 "
108
+ image = " docker.io/qdrant/qdrant:${ var . qdrant_version } "
109
109
image_pull_policy = " IfNotPresent"
110
110
command = [" /bin/bash" , " -c" , " /qdrant/config/initialize.sh" ]
111
111
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ variable "name" {
10
10
default = " qdrant"
11
11
}
12
12
13
- variable "replicas " {
13
+ variable "replica_count " {
14
14
type = number
15
15
description = " Replicas count for the Qdrant instances"
16
16
default = 2
@@ -27,3 +27,9 @@ variable "storage_size" {
27
27
description = " Storage size for the Qdrant instances"
28
28
default = " 10Gi"
29
29
}
30
+
31
+ variable "qdrant_version" {
32
+ type = string
33
+ description = " The Qdrant version"
34
+ default = " latest"
35
+ }
You can’t perform that action at this time.
0 commit comments