sablierapp / sablier

Start your containers on demand, shut them down automatically when there's no activity. Docker, Docker Swarm Mode and Kubernetes compatible.
https://sablierapp.dev/
GNU Affero General Public License v3.0
1.36k stars 46 forks source link

[Feedback] Documentation on Kubernetes #121

Closed bodak closed 1 year ago

bodak commented 1 year ago

I successfully set this up in a K3S, Traefik 2.0, localized plugin (no hub integration) and IngressRoute stack. I mainly followed the code-server guide.

Feedback points:

Initially, I had it just as the deployment name i.e. code-server-deployment. Interestingly, this resulted in the sablier deployment crashing with:

time="2022-12-02T10:04:48Z" level=info msg="(version=1.2.0, branch=HEAD, revision=3176848116340590d702f0170a51c517696f7629)"
time="2022-12-02T10:04:48Z" level=info msg="using provider \"kubernetes\""
time="2022-12-02T10:04:48Z" level=info msg="initialized storage to /etc/sablier/state.json"
time="2022-12-02T10:04:48Z" level=info msg="server listening :10000"
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x40 pc=0x1081364]

goroutine 86 [running]:
github.com/acouvreur/sablier/app/providers.(*KubernetesProvider).Start(0x400057003a?, {0x400057003a, 0x7})
    /go/src/sablier/app/providers/kubernetes.go:80 +0x64
github.com/acouvreur/sablier/app/sessions.(*SessionsManager).requestSessionInstance(0x400011e800, {0x400057003a, 0x7}, 0x0?)
    /go/src/sablier/app/sessions/sessions_manager.go:146 +0x44c
github.com/acouvreur/sablier/app/sessions.(*SessionsManager).RequestSession.func1({0x400057003a, 0x7})
    /go/src/sablier/app/sessions/sessions_manager.go:125 +0x74
created by github.com/acouvreur/sablier/app/sessions.(*SessionsManager).RequestSession
    /go/src/sablier/app/sessions/sessions_manager.go:123 +0xd4
acouvreur commented 1 year ago

Thanks for the feedback!

I'll check for some of the issues you encountered and will fix them.