Commit Graph
100 Commits
Author SHA1 Message Date
Jose Diaz-Gonzalez ea55db2747 refactor: install traefik via helm chart directly to avoid issues where traefik silently fails installation 2024-01-24 03:58:39 -05:00
Jose Diaz-Gonzalez e164f8393a Merge pull request #6520 from dokku/healthcheck-fixes
Guard against missing healthcheck config
2024-01-24 02:40:18 -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 a64e9514ee Merge pull request #6519 from dokku/fix-cluster-issuers-name
Use correct name for cluster-issuers helm chart
2024-01-24 02:33:01 -05:00
Jose Diaz-Gonzalez 578afc0ef7 fix: use correct name for cluster-issuers 2024-01-24 02:19:21 -05:00
Jose Diaz-Gonzalez a644908fbf fix: add missing help output 2024-01-23 12:52:08 -05:00
Jose Diaz-Gonzalez b56495b367 docs: clarify that a rebuild is required 2024-01-23 11:47:50 -05:00
Jose Diaz-Gonzalez 4f26913e44 Merge pull request #6517 from dokku/josegonzalez-patch-1
Remove k3s tutorial from documentation
2024-01-23 11:38:47 -05:00
Jose Diaz-Gonzalez bbf9febe30 docs: remove k3s tutorial from documentation
This belongs in the tutorial section
2024-01-23 11:38:33 -05:00
Jose Diaz-Gonzalez 54a12c9c89 Merge pull request #6516 from dokku/josegonzalez-patch-1
Note that the external kubernetes plugin is deprecated
2024-01-23 11:12:09 -05:00
Jose Diaz-Gonzalez 2cd8e1e61e Note that the external kubernetes plugin is deprecated
This was never in the core and thus doesn't need to be called out.
2024-01-23 11:11:35 -05:00
Jose Diaz-Gonzalez ca33c437d3 Merge pull request #6515 from dokku/josegonzalez-patch-1
Replace the kubernetes plugin with k3s in the documentation
2024-01-23 11:09:15 -05:00
Jose Diaz-Gonzalez ef63b28804 chore: replace the kubernetes plugin with k3s 2024-01-23 11:08:56 -05:00
Jose Diaz-Gonzalez 5958179d86 Merge pull request #6514 from dokku/josegonzalez-patch-1
docs: add notes on k3s replacement of the scheduler-kubernetes plugin
2024-01-23 11:08:37 -05:00
Jose Diaz-Gonzalez 67ef6f98ab docs: add notes on k3s replacement of the scheduler-kubernetes plugin 2024-01-23 11:07:46 -05:00
Jose Diaz-Gonzalez 7025968b74 Merge pull request #6513 from dokku/dependabot/go_modules/plugins/scheduler-k3s/github.com/containerd/containerd-1.7.11
chore(deps): bump github.com/containerd/containerd from 1.7.6 to 1.7.11 in /plugins/scheduler-k3s
2024-01-23 10:46:49 -05:00
Jose Diaz-Gonzalez 5d8fdb31db Merge pull request #6512 from dokku/update-go-gomega
Update github.com/gonsi/gomega golang dependencies
2024-01-23 10:43:49 -05:00
Jose Diaz-Gonzalez 552d08ea88 chore: update gonsi/gomega golang dependencies 2024-01-23 10:43:18 -05:00
Jose Diaz-Gonzalez 790f087800 Merge pull request #6478 from dokku/dependabot/docker/tests/apps/zombies-dockerfile-tini/golang-1.21.6
chore(deps): bump golang from 1.21.5 to 1.21.6 in /tests/apps/zombies-dockerfile-tini
2024-01-23 10:41:03 -05:00
Jose Diaz-Gonzalez dda8aed1e2 Merge pull request #6482 from dokku/dependabot/pip/docs/_build/mkdocs-material-9.5.4
chore(deps): bump mkdocs-material from 9.5.3 to 9.5.4 in /docs/_build
2024-01-23 10:40:38 -05:00
Jose Diaz-Gonzalez 0f3538f158 Merge pull request #6494 from dokku/dependabot/pip/docs/_build/markupsafe-2.1.4
chore(deps): bump markupsafe from 2.1.3 to 2.1.4 in /docs/_build
2024-01-23 10:40:31 -05:00
Jose Diaz-Gonzalez 82835e03a2 Merge pull request #6511 from dokku/update-go-crypto
Update crypto and sys golang dependencies
2024-01-23 10:40:09 -05:00
Jose Diaz-Gonzalez 569105d479 chore: update crypto and sys golang dependencies 2024-01-23 10:39:39 -05:00
Jose Diaz-Gonzalez 68d61fba0b fix: set correct version on plugin 2024-01-23 10:38:01 -05:00
Jose Diaz-Gonzalez dc1d9fe92f Merge pull request #6470 from dokku/0.33-release
Release 0.33.0
2024-01-23 10:33:59 -05:00
Jose Diaz-Gonzalez c53e7330b5 Merge pull request #6435 from dokku/k3s-support
Implement native k3s scheduler support
2024-01-23 10:31:07 -05:00
Jose Diaz-Gonzalez ee23dac2f3 fix: respect the namespace 2024-01-23 10:16:40 -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 56ee889295 chore: note that the cluster-issuer is managed by dokku 2024-01-23 09:32:52 -05:00
Jose Diaz-Gonzalez c1b3c73096 chore: drop unnecessary key 2024-01-23 09:32:41 -05:00
Jose Diaz-Gonzalez 1f35575a2a fix: use the container port as the target to fix an issue where kubernetes will remove duplicate containerPort entries with different names 2024-01-23 08:59:44 -05:00
Jose Diaz-Gonzalez d8fcabdf40 fix: always route to http instead of https
Otherwise, we're assuming the app pod is going to handle https requests and not the ingress
2024-01-23 08:10:16 -05:00
Jose Diaz-Gonzalez 7b2484962b fix: set tls field on ingress-route 2024-01-23 07:59:14 -05:00
Jose Diaz-Gonzalez 1d07801f3c fix: set ttl property at correct level for cronjobs 2024-01-23 07:25:51 -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 a9e6e96697 feat: implement scheduler-k3s:report 2024-01-23 05:01:23 -05:00
Jose Diaz-Gonzalez cc62bc080b fix: use correct field for comparison 2024-01-23 04:55:38 -05:00
Jose Diaz-Gonzalez fbbc967e8d chore: add todo 2024-01-23 04:55:24 -05:00
Jose Diaz-Gonzalez a0811c2cb3 fix: move field to correct location 2024-01-23 04:42:20 -05:00
Jose Diaz-Gonzalez 57e76e29d1 fix: correct the scope on the token 2024-01-23 04:25:41 -05:00
Jose Diaz-Gonzalez ff849cd4f8 fix: touch the known hosts file earlier 2024-01-23 04:25:25 -05:00
Jose Diaz-Gonzalez 204517074b fix: allow setting a custom ip address as the ip pf the dokku server
This will provide the ability to override cases where the detected ip address is invalid for whatever reason.
2024-01-23 03:26:32 -05:00
Jose Diaz-Gonzalez c6838b645e chore: update go mod 2024-01-23 03:21:21 -05:00
Jose Diaz-Gonzalez 56f25c4855 fix: ensure the known_hosts file exists before attempting to ssh onto a server 2024-01-23 03:21:05 -05:00
Jose Diaz-Gonzalez 1e559f20e5 refactor: use helper function to get process resources 2024-01-23 03:00:27 -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 75539273e3 docs: update documentation 2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez 2eb346d50d fix: allow setting letsencrypt-server globally 2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez 001ae3c83b fix: set default value for rollback-on-failure 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 22f27ea2d3 fix: add missing newline 2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez 661dfbbf51 chore: ignore yaml files in scheduler-k3s plugin 2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez 29760e8ecd feat: add support to tls for ingress-route
If tls is enabled on the process, we create add the https entrypoint and also add the requisite tls secret-name
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 01ec08fd79 refactor: simplify port string 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 b64c3a1859 chore: add missing import 2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez 3d6225406d chore: rename input variable 2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez 3ddfd2bc7d feat: install cert-manager 2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez f7acbb1e7c refactor: place all required manifests in a single location
This will make it easier for us to apply the installs.
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez e4a74366ba chore: move around structs to be closer to the functions using them 2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez 309256955d feat: label the k3s server nodes as capable of fronting traffic
The idea here is that only k3s nodes can/should handle certificate requests. While users may wish to force these onto dedicated lb nodes in the future, at least for now, separating app workloads with routing seems like an okay trade-off.
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez 0730647af7 feat: implement :cluster-list and :cluster-remove
These - and the existing :cluster-add command - do not require root.
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez d494e01c7b chore: update error message 2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez 33a3e6a2fc chore: drop unused node label 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 09ca1f1299 fix: correct issue with file copygin 2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez 707c22eae7 chore: update docs concerning network requests 2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez 78bc2849cb feat: add longhorn 2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez 68fef56403 docs: remove note about syncing with traefik 2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez 34b06d488f fix: add missing makefile and dokku entries for uninstall and cluster-add 2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez b85bc49f03 docs: update k3s documentation 2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez a1428ceb74 fix: do not set a static token and generate one as needed 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 af3009f0da chore: bump go modules 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 5c4e1dfc39 fix: do not attempt to uninstall a chart that isn't available 2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez 86da40ba19 feat: add default-container annotation everywhere 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 e6d372f963 docs: reference image repo templating and git key generation for setup 2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez dce900588e chore: revert -- change 2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez ceae555e43 docs: revert docs 2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez 84ef557c93 docs: remove now incorrect docs 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 27b82f77a3 fix: drop duplicate 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 a90f6bdee8 docs: remove need to add --
This is done transparently now by Dokku, so no need to have a bc-break
2024-01-23 03:00:27 -05:00
Jose Diaz-Gonzalez 599692446e docs: update what is supported 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 da4771e6e4 fix: uninstall in foreground 2024-01-23 03:00:27 -05:00