Jose Diaz-Gonzalez
8670dbab78
fix: ignore case where k3s isn't installed anymore when stopping services
2024-02-22 07:54:32 -05:00
Jose Diaz-Gonzalez
23fe19faaa
fix: bypass deletion error if k3s is the configured scheduler and it isn't installed
2024-02-22 07:42:15 -05:00
Jose Diaz-Gonzalez
72067fcfd2
feat: add ability for users to specify alternative kubeconfig and kubecontext
...
This will provide the possibility for users to talk to existing kubernetes clusters, thereby removing one of the biggest reasons for having the old scheduler-kubernetes plugin around.
2024-02-22 07:42:15 -05:00
Jose Diaz-Gonzalez
3c6cc68086
refactor: capture output by default
...
This is almost certainly the correct default for Dokku. While it's a BC break and might cause an increase in memory usage, the api is mostly internal and therefore this is safe to use.
2024-02-12 20:28:31 -05:00
Jose Diaz-Gonzalez
047a3c00f5
chore: remove default false values when calling CallExecCommand
2024-02-12 20:07:43 -05:00
Jose Diaz-Gonzalez
1ae2df52f5
fix: use image pull secrets instead of registries.yaml to reference private repositories
...
While this will now more or less require a local docker login - which can be overridden by setting the image-pull-secrets property - this ensures every deploy has a valid context.
One annoying thing is that the secret is per-app vs global, meaning that if the secret must be rotated, all apps need to be redeployed. A future change can fix that by deploying a global secret, or if folks really desire, this can be done by setting the image-pull-secrets property on the app/globally.
2024-02-12 17:15:37 -05:00
Jose Diaz-Gonzalez
abbc13cb85
fix: ensure the ingress class is properly set for certificate usage
...
Without this, switching to nginx ingress fails as the cluster issuer isn't properly configured
2024-02-12 01:31:39 -05:00
Jose Diaz-Gonzalez
433eb26f3c
feat: always skip the https ingress/ingress-route/deployment port entry if there is a corresponding http entry
...
Also inject the corresponding entries as necessary
2024-02-12 01:31:39 -05:00
Jose Diaz-Gonzalez
bfccf60a37
refactor: simplify tls handling by always redirecting
2024-02-12 01:31:39 -05:00
Jose Diaz-Gonzalez
980979ef87
feat: properly handle nginx annotation merging
2024-02-06 22:48:22 -05:00
Jose Diaz-Gonzalez
416a119904
feat: pull nginx properties as ingress annotations
2024-02-06 22:12:54 -05:00
Jose Diaz-Gonzalez
5674a29211
feat: add ability to use ingress-nginx for routing instead of traefik
2024-02-06 21:19:51 -05:00
Jose Diaz-Gonzalez
f5f583b12b
feat: add support for specifying annotations
...
As the command contains a colon, it must be handled in the commands binary as opposed to subcommands.
Also include a simple bats test.
2024-02-06 13:54:53 -05:00
Jose Diaz-Gonzalez
96e79487b9
fix: skip app stop/delete when k3s is not installed
2024-02-06 04:38:04 -05:00
Jose Diaz-Gonzalez
d02c04c2a5
feat: add support for app-specific service accounts when deploying via k3s
...
Service accounts must still be bound to a role, but this ensures apps do not get access to the default service account.
2024-02-05 16:47:57 -05:00
Jose Diaz-Gonzalez
029e1f5f48
feat: add the dokku logo as the chart icon
2024-01-26 06:55:46 -05:00
Jose Diaz-Gonzalez
f5182aa553
feat: allow specifying an ingress class via chart value
...
While Dokku currently only supports traefik, providing this setting will allow swapping out the ingress to another fairly easily.
2024-01-26 03:23:34 -05:00
Jose Diaz-Gonzalez
1d99e0bc6e
fix: guard against missing healthcheck config
...
Also add support for liveness and readiness probes.
2024-01-24 02:39:39 -05:00
Jose Diaz-Gonzalez
578afc0ef7
fix: use correct name for cluster-issuers
2024-01-24 02:19:21 -05:00
Jose Diaz-Gonzalez
6707e5f1eb
feat: add redirect to https when both an http and https port mapping match
2024-01-23 09:45:20 -05:00
Jose Diaz-Gonzalez
cf7d35601d
fix: delete the temporary helm chart on disk
2024-01-23 07:25:42 -05:00
Jose Diaz-Gonzalez
99f20a962e
refactor: rename helm chart to app name
2024-01-23 07:25:28 -05:00
Jose Diaz-Gonzalez
25925c0ae2
chore: remove logging from inside helm client
2024-01-23 07:25:18 -05:00
Jose Diaz-Gonzalez
4a7db5ce24
feat: apply the cluster issuers on every app deploy
...
This ensures we can always get certificates regardless of what app gets deployed with whatever configuration.
2024-01-23 07:25:03 -05:00
Jose Diaz-Gonzalez
c8f5ad9029
fix: correct issues in certificate generation
2024-01-23 06:18:25 -05:00
Jose Diaz-Gonzalez
2336063ca2
refactor: move templating into pseudo-generated helm chart
...
The previous mechanism of constructing the helm chart was pretty obnoxious due to needing to have some things in the object and some in template files that were appended afterwards. This change simplifies that by using template files per type with minimal replacements.
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
b1802547ae
feat: add letsencrypt support
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
62c8cb770e
feat: add support for global properties
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
63a6e9087f
feat: create tls certificate if tls is enabled and the app has domains
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
b0485495e4
refactor: make domains a helm value
...
This will allow updating domains on the fly
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
2bee070e78
chore: unify context handling
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
2619c3db08
fix: ensure critical addons come up when the node is tainted
...
Rather than taint on `node-role.kubernetes.io/master=true:NoSchedule`, we check for `CriticalAddonsOnly=true:NoSchedule` and taint on that.
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
3375474a4c
feat: copy the registry file to all remote hosts
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
a354210f67
fix: treat the registry file as a pointer
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
69e9511666
feat: implement cluster joining for server and worker nodes
...
Different options get applied to each depending on what is needed for the role.
This also updates how we initialize the cluster to better support how metrics exposure and cross-server networking.
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
632b26905a
feat: use common labels instead of custom ones
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
9cd0644883
refactor: fix issues with pod entering
...
- ensure we always wait for the specific pod we want to be ready
- enter the default container if none is specified
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
cee47b4836
fix: do not try and override image repo
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
4650585ded
fix: pull pass from env var
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
5449c35dbe
fix: correct path to registry config and update go.mod
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
e13561ec4d
refactor: move registry path to const
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
8762bede07
feat: implement healthcheck support
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
cb62ab02f4
fix: add missing post-deploy triggers
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
c2b78bb2d7
feat: implement run:list
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
e4855941fe
feat: allow for stable cron names
...
The cron id is too long to store in the cronjob, so we generate a short identifier and look that up each time on deploy to ensure stability across time.
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
297853781f
refactor: move all k8s code behind client
...
Also fix an issue where attaching to pods fails in rare cases
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
1c5505f78b
refactor: move functions around and ensure we respect local versions of golang dependencies
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
9d27ff39da
refactor: only delete the helm chart in the scheduler-post-delete hook
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
bb8fd39e80
chore: drop extra debugging for one-off jobs
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez
0127f836fa
feat: implement cron jobs
2024-01-23 03:00:27 -05:00