This repository has been archived by the owner on Jan 2, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathqdrant-cluster-complete.yaml
79 lines (77 loc) · 1.94 KB
/
qdrant-cluster-complete.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
apiVersion: qdrant.operator/v1alpha1
kind: QdrantCluster
metadata:
name: my-cluster
spec:
replicas: 3
image: qdrant/qdrant:v1.7.4
apikey: 'true'
# apikey: 'yourkey'
# Optional. If not declared - the operator will generate new random key
readApikey: 'true'
# readApikey: 'yourreadonlykey'
# Optional. Can be declared if spec.apikey enabled only
config:
cluster:
consensus:
tick_period_ms: 50
persistence:
size: 1Gi
storageClassName: default
tls:
enabled: true
# secretName: secretname
# Optional. This secret should contain the next fields: cert.pem, key.pem and cacert.pem
# If not declared - the operator will generate new CA and certificate
sidecarContainers:
- name: nginx
image: nginx:1.25
ports:
- containerPort: 80
additionalVolumes:
- name: qdrant-newfolder
emptyDir: {}
additionalVolumeMounts:
- name: qdrant-newfolder
mountPath: /qdrant/newfolder
resources:
requests:
cpu: 10m
memory: 100Mi
limits:
cpu: 1000m
memory: 500Mi
# scheduling options
tolerations:
- key: "app.stateful/component"
operator: "Equal"
value: "qdrant-operator"
effect: NoSchedule
nodeAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 1
preference:
matchExpressions:
- key: "app.stateful/component"
operator: In
values:
- "qdrant-operator"
podAntiAffinity:
preferredDuringSchedulingIgnoredDuringExecution:
- weight: 100
podAffinityTerm:
labelSelector:
matchExpressions:
- key: clustername
operator: In
values:
- my-cluster
topologyKey: kubernetes.io/hostname
topologySpreadConstraints:
- maxSkew: 1
topologyKey: "topology.kubernetes.io/zone"
whenUnsatisfiable: DoNotSchedule
labelSelector:
matchLabels:
clustername: my-cluster
component: qdrant