robjuz / helm-charts

https://robjuz.github.io/helm-charts/index.yaml
34 stars 31 forks source link

Add plugin in Kimai via Helm #79

Closed mayankkhullar closed 8 months ago

mayankkhullar commented 8 months ago

Need to add the plugin in helm installation on k8s https://www.kimai.org/store/katjaglass-approval-bundle.html

i have created directory and /var/plugins and ran git clone in that directory and running the same image on k8s , its giving

exec /usr/local/bin/docker-php-entrypoint: exec format error

How can we simplify plugins installations on k8s installations made via helm ?

robjuz commented 8 months ago

I'm facing the same problem. For now a have persistence enabled and copy the plugin manually using kubectl.

I will adjust it to enable Plugins bundled directly in docker container.

mayankkhullar commented 8 months ago

after kubectl cp i have to restart the server and the issue is all the plugins will be deleted after that

robjuz commented 8 months ago

Have you set persistance.enabled=true to create a persistence volume?

mayankkhullar commented 8 months ago

yes pv is already there

pvc-bd94e743-6f44-4b83-a521-1cb3871841fc 4Gi RWO Delete Bound kimai/kimai-kimai2 default 11d

robjuz commented 8 months ago

Ok. This is a good start. The directory you need to copy into is /opt/kimai/var/plugins

mayankkhullar commented 8 months ago

oh i was doing in /var/plugins

mayankkhullar commented 8 months ago

so do i have to restart the pod after placing ? or it will pick automatically. ?

robjuz commented 8 months ago

You need to clear the cache. Either by restarting the pod or running the proper console command

mayankkhullar commented 8 months ago

no its still not coming up when i place inside /opt/kimai/var/plugins , it failed with exec /usr/local/bin/docker-php-entrypoint: exec format error

robjuz commented 8 months ago

This is a strange error.

Can you give me more details? What is your values.yaml? Where are deploying to?

On Mon, 18 Mar 2024, 15:36 mayank, @.***> wrote:

no its still not coming up when i place inside /opt/kimai/var/plugins , it failed with exec /usr/local/bin/docker-php-entrypoint: exec format error

— Reply to this email directly, view it on GitHub https://github.com/robjuz/helm-charts/issues/79#issuecomment-2004088883, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACFLPUBL375BLAZKUEGLZRDYY33WHAVCNFSM6AAAAABE3LYO6CVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBUGA4DQOBYGM . You are receiving this because you commented.Message ID: @.***>

mayankkhullar commented 8 months ago

It worked