https://questdb.io logo
Title
d

David Bellizzi

03/01/2023, 3:20 PM
Hey questdb folks we are trying to use the pre-existing PVC option in the helm chart. But it does not seem to take it and it create it's own PVC
s

Steven Sklar

03/01/2023, 3:35 PM
Thanks! That might be a typo.. looking into it
For your existing PVC, did you set the
.persistence.existingClaim
value?
I’ll try to repo on my end
m

mothiswaran

03/01/2023, 3:36 PM
I have pass the command while helm install “--set persistence.existingClaim=$pvc”
but somehow its not taking
Its creating with new pvc
s

Steven Sklar

03/01/2023, 3:37 PM
gotcha! I’ll take a look in a few minutes and get back with my findings
m

mothiswaran

03/01/2023, 3:38 PM
Sure, Thank you
s

Steven Sklar

03/01/2023, 3:38 PM
which version of the chart are you using?
m

mothiswaran

03/01/2023, 3:40 PM
version: 2.0.0
s

Steven Sklar

03/01/2023, 3:43 PM
Sorry, I’m not sure which version that is. We’re on 0.28.0 now. If you
helm repo update questdb
, you should get the latest one.
d

David Bellizzi

03/01/2023, 3:44 PM
@mothiswaran check the requirements section in the Chart.yaml
m

mothiswaran

03/01/2023, 3:44 PM
Sry i think, i have paste u the wrong one
dependencies: - name: questdb version: 0.. repository: https://helm.questdb.io/
s

Steven Sklar

03/01/2023, 3:53 PM
I just did a quick test in a kind cluster (running the latest 0.28.0 version) and it appears to be working. I made a
pvc
called
foo-pvc
and set the following in `values.yaml`:
persistence:
  enabled: true
  existingClaim: foo-pvc
I only have 1 pvc in the namespace:
d

David Bellizzi

03/01/2023, 3:55 PM
Maybe that var in your shell script is undef @mothiswaran
s

Steven Sklar

03/01/2023, 3:55 PM
and it’s mounted to my pod
I would also check to make sure that the pvc and your questdb sts are in the same namespace
m

mothiswaran

03/01/2023, 3:55 PM
Yah @David Bellizzi
ok let me check once
s

Steven Sklar

03/01/2023, 3:57 PM
also separately… it looks like you can treat
and
as a function in the helm templating language, with each clause as an argument https://helm.sh/docs/chart_template_guide/function_list/#and
TIL that one 🙂
m

mothiswaran

03/01/2023, 3:58 PM
Sure, I will give a try
Thank you @Steven Sklar
s

Steven Sklar

03/01/2023, 3:58 PM
no prob! Let me know how it goes! I’m happy to help 🙂
m

mothiswaran

03/01/2023, 3:58 PM
Sure !
Its worked @Steven Sklar