Skip to content
Snippets Groups Projects
Commit 33e14c34 authored by Remi  PLANEL's avatar Remi PLANEL
Browse files

add pvc for vector

parent 90192121
No related branches found
No related tags found
No related merge requests found
Pipeline #154556 passed
......@@ -81,6 +81,10 @@ spec:
- mountPath: /etc/vector/secret.sh
name: vector-config
subPath: secret.sh
- mountPath: /var/log/pods
name: vector-volume
subPath: pods
{{- with .Values.vector.resources }}
resources:
{{- toYaml . | nindent 12 }}
......@@ -93,6 +97,9 @@ spec:
configMap:
name: {{ include "supabase.vector.fullname" . }}-config
defaultMode: 0777
- name: vector-volume
persistentVolumeClaim:
claimName: {{ include "supabase.vector.fullname" . }}-pvc
{{- with .Values.vector.nodeSelector }}
nodeSelector:
{{- toYaml . | nindent 8 }}
......
{{- if .Values.vector.enabled -}}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ include "supabase.vector.fullname" . }}-pvc
labels:
{{- include "supabase.labels" . | nindent 4 }}
{{- with .Values.db.persistence.annotations }}
annotations:
{{- toYaml . | nindent 4 }}
{{- end }}
spec:
{{- if .Values.vector.persistence.storageClassName }}
storageClassName: {{ .Values.vector.persistence.storageClassName }}
{{- end }}
accessModes:
{{- range .Values.vector.persistence.accessModes }}
- {{ . | quote }}
{{- end }}
resources:
requests:
storage: {{ .Values.vector.persistence.size | quote }}
{{- end }}
\ No newline at end of file
......@@ -978,6 +978,13 @@ vector:
# readOnlyRootFilesystem: true
# runAsNonRoot: true
runAsUser: 65534
persistence:
storageClassName: "ceph-block"
annotations: {}
size: 2Gi
accessModes:
- ReadWriteOnce
service:
type: ClusterIP
port: 9001
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment