Hi all again, I am looking into PrefectHQ/server k...
# ask-community
m
Hi all again, I am looking into PrefectHQ/server kubernetes installation through Helm https://github.com/PrefectHQ/server/blob/master/helm/prefect-server when I try to modify the securityContext for e.g. hasura service the helm install fails:
helm install prefect prefecthq/prefect-server -f values.yaml
with the following error:
Copy code
Error: YAML parse error on prefect-server/templates/hasura/deployment.yaml: error converting YAML to JSON: yaml: line 31: mapping values are not allowed in this context
Attached you can find the values.yaml file that I try to provide for the helm install command. The only modification is the securityContext:
Copy code
securityContext:
  runAsUser: 1000
  runAsGroup: 1000
instead of
Copy code
securityContext: {}
for hasura service The errored line 31 of the hasura deployment.yaml looks as follows:
Copy code
securityContext:
    {{- toYaml . | nindent 8 }}
  {{- end }}
Thanks for help.
k
Hi @Matej! This looks like it's caused by an indentation issue. Could you check the indents?
m
I have checked and tried to add it by hand correctly. I hope it is correct. The hasura part of the helm config is below I dont think there is an indentation problem thanks Kevin for all the help so far.
k
I am finding someone who can help with this
Btw in case you don’t know, Prefect Cloud has 10k free task runs per month and is a lot easier to use than Server
m
Thanks, will try. I am looking into a platform for a smaller team with an existing rancher k8s cluster so that is why i am trying to set up everything with helm. Btw what is the relationship between dask executor and the prefect agent. If i wanted to set everything up in k8s cluster meaning dask cluster with prefect server. Does it make sense to add prefect agents as well? How does it all orchestrate together? (Where can I find this out?|
I ve posted the issue here as a question if it is possible to install it on k8s without root. https://github.com/PrefectHQ/prefect/discussions/4527