Commit Graph

51 Commits

Author SHA1 Message Date
Alexis Couvreur
3eb7d480da feat: add persistent storage (#30)
* refactor: remove unused default timeout

* feat: add persistent storage

Allows you to save the state to a file and load it upon restarting the app to restore the previous state.

* chore: upgrade to go 1.18

* use tinykv with generics

* build: add "-buildvcs=false" flag

Git is not available in golang:1.18-alpine image
2022-07-23 12:53:23 -04:00
Alexis Couvreur
4eb086f9d5 fix(swarm): avoid API hammering on scaling request (#26) 2022-07-23 12:53:23 -04:00
Alexis Couvreur
0edf684643 ci: add "beta" branch to ci release trigger" 2022-07-23 12:53:23 -04:00
Alexis Couvreur
4f89362e41 ci: release on beta branch 2022-07-23 12:53:23 -04:00
Alexis Couvreur
410a5e15eb fix(swarm): add an extra wait of 5 seconds to consider a service up 2022-07-23 12:53:23 -04:00
Matthias Schneider
1e69a5754f docs(kubernetes): fix markdown issue and wording (#22) 2021-11-18 15:56:17 +01:00
Matthias Schneider
b244cc8d0b docs(kubernetes): add Statefulset compatibility README (#21)
related to #20
2021-11-18 15:44:44 +01:00
Romain
d299780f58 feat(kubernetes): add compatibility with Statefulset (#20)
* Add statefulset compatibility

* Add rbac in doc

* replace AvailableReplica by ReadyReplica

* Replace if to switch
2021-11-18 15:20:48 +01:00
Alexis Couvreur
fab46ad4c6 ci: release go binaries for linux/amd64 linux/arm64 linux/arm/v7 (#19) 2021-10-29 00:07:21 +02:00
Alexis Couvreur
a127a0fc86 feat: add multiplatform docker image build (#18)
The build is very slow for some reason. ~15mins
2021-10-01 23:19:33 +02:00
Alexis Couvreur
29b1da52ea feat: add dockerhub registry (#17) 2021-10-01 22:19:02 +02:00
Alexis COUVREUR
42b0a9a354 ci: build docker image on tag 2021-10-01 22:05:31 +02:00
Matthias Schneider
1d3af8cd80 docs: add kubernetes documentation (#15) 2021-10-01 18:41:23 +02:00
Matthias Schneider
0e920523d2 feat: add kubernetes support (#14) 2021-10-01 18:40:43 +02:00
Alexis COUVREUR
030e8da427 docs: add features 2021-09-29 14:14:42 +02:00
Alexis COUVREUR
f2eabd73b6 ci(release): use PAT to trigger docker build on tag 2021-09-28 14:22:43 +02:00
Alexis COUVREUR
e11151c08f ci(docker): expose port 10000 2021-09-28 14:21:55 +02:00
Alexis Couvreur
ebd24562b1 feat: add healthcheck lookup before redirect (#12)
Docker classic IsUp will return false when the container defines a healthcheck and is not healthy, otherwise as soon as it's started it's up.
Docker swarm will check that the number of required tasks is higher than 1, and that the number of running tasks matches the number of desired tasks.
A task is not running when it defines a healthcheck and is not healthy.
2021-09-28 12:44:27 +02:00
Alexis Couvreur
68732717ad fix: scale down correctly update the service specification 2021-09-26 21:01:55 +00:00
Alexis Couvreur
0ecd9d9213 feat: add log.Error on error 2021-09-26 20:51:04 +00:00
Alexis Couvreur
80cbb25975 ci: push to ghcr.io (#10) 2021-09-26 16:52:40 +02:00
Alexis Couvreur
281b657123 docs(docker): add docker-compose sample 2021-09-26 14:36:48 +00:00
Alexis Couvreur
19d3b71722 docs: add CLI, Docker and API usage 2021-09-26 14:32:33 +00:00
Alexis Couvreur
e357030b8c fix: use text/plain content-type instead of application/json
The returned string is not a valid json
2021-09-26 14:32:33 +00:00
Alexis Couvreur
ac377db936 fix: change module to traefik-ondemand-service 2021-09-26 14:32:22 +00:00
Alexis Couvreur
033f125a5b feat(docker): use ENTRYPOINT for go executable 2021-09-26 14:06:47 +00:00
Alexis Couvreur
277d12a864 ci: add docker build on all branches 2021-09-26 13:44:52 +00:00
Alexis Couvreur
c96482ef67 feat: add docker classic support (#9)
Defaults with docker swarm support for retro compatibiliy.
You can add --swarmMode=false to deactivate it.

Closes #4
2021-09-26 00:36:45 +02:00
Alexis Couvreur
f78af94572 ci: add build, docker and release pipelines (#6) 2021-09-25 22:22:46 +00:00
alexandre.hiltcher@etu.unice.fr
c40c14918c Merge branch 'main' of https://github.com/acouvreur/traefik-ondemand-service into main 2020-10-22 18:53:55 +02:00
alexandre.hiltcher@etu.unice.fr
92cbde3442 Rename function 2020-10-22 18:53:50 +02:00
alexandre.hiltcher@etu.unice.fr
f6df228c99 Refactor code 2020-10-22 18:49:42 +02:00
Alexis Couvreur
13caa514f0 Create LICENSE 2020-10-21 23:04:33 +02:00
alexandre.hiltcher@etu.unice.fr
c780693d90 Add README 2020-10-21 23:03:30 +02:00
alexandre.hiltcher@etu.unice.fr
8a7ad94192 Do not create a new client on each request 2020-10-21 21:28:32 +02:00
alexandre.hiltcher@etu.unice.fr
b1077100e6 Remove debug prints 2020-10-21 20:46:39 +02:00
alexandre.hiltcher@etu.unice.fr
cd648ec4b2 Make channel write non blocking 2020-10-21 20:44:36 +02:00
alexandre.hiltcher@etu.unice.fr
b29a76d646 Remove unused file 2020-10-21 20:30:57 +02:00
Alexis Couvreur
f051238f41 Changed image to work 2020-10-21 20:27:13 +02:00
Alexis Couvreur
105e7b6a83 Added executable entrypoint 2020-10-21 20:02:58 +02:00
Alexis Couvreur
2ca72df567 Fix build path 2020-10-21 19:56:12 +02:00
Alexis Couvreur
da87d9df2b Merge branch 'main' of github.com:acouvreur/traefik-ondemand-service into main 2020-10-21 19:53:37 +02:00
Alexis Couvreur
b03352eaec master to main :) 2020-10-21 19:53:29 +02:00
alexandre.hiltcher@etu.unice.fr
51f8e4771d Update return value 2020-10-21 19:53:01 +02:00
alexandre.hiltcher@etu.unice.fr
8dc8a5c7cd WIP it's working 2020-10-21 19:48:30 +02:00
alexandre.hiltcher@etu.unice.fr
861b1f269f Stop after timeout
Only missing interupt
2020-10-21 18:42:09 +02:00
alexandre.hiltcher@etu.unice.fr
48fbc437fb Clean up code 2020-10-21 18:37:51 +02:00
alexandre.hiltcher@etu.unice.fr
04225e22ac Merge branch 'main' of https://github.com/acouvreur/traefik-ondemand-service into main 2020-10-21 18:06:40 +02:00
alexandre.hiltcher@etu.unice.fr
d6936526a9 Get service status from dowker 2020-10-21 18:06:35 +02:00
Alexis Couvreur
c733adca93 Added github action build multi arch 2020-10-21 12:57:00 +02:00