Storing api definitions on persistent volume in tyk community edition


We are evaluating tyk community edition on our on premise k8s cluster. Whenever we add a new api definition, it does save the definition into the filesystem. Moreover, the tyk helm charts do not support the option of configuring shared persistent volume for all the tyk-gateway-headless pods. So, using a k8s version without mounting a persistent volume for the ./apps dir will result in losing our definitions.

We have tried customizing the helm chart for supporting shared persistent volume on to our nfs storage cluster. While installing the chart, we are getting the following error message.

panic: html/template: pattern matches no files: /go/src/*
goroutine 1 [running]:
/usr/local/go/src/html/template/template.go:372, 0xc0003fce40)
/go/src/ +0x1881, 0xc0003fce40, 0x5, 0xc0002c7530)
/go/src/ +0x405
/go/src/ +0x162
/go/src/ +0x20

Has anyone succeeded to make tyk CE work by mounting a persistent volume for apps directory so that we can persist API definitions in the peristent volume?

Suresh Charan