dokku/dokku-scheduler-kubernetes
Một mục hướng lập trình viên trong kho dữ liệu GitHub của TopGit: dokku/dokku-scheduler-kubernetes, 159 sao, nhóm Developer Tools, Shell. deprecated: use scheduler-k3s plugin in dokku core
Tóm tắt dựng từ metadata GitHub của chính dự án — chưa có bài review TopGit. Trang sẽ tự động cập nhật khi bài review đầy đủ được xuất bản.
TopGit viết bài đầy đủ cho repo có nhiều sao nhất và được yêu cầu nhiều nhất. Trang này là snapshot trong thời gian chờ — xem README gốc ở tab READ ME.
Snapshot
Cộng tác viên hàng đầu
Xem cộng tác viên hàng đầu
dokku-scheduler-kubernetes
[!IMPORTANT] deprecated: use scheduler-k3s plugin in dokku core
If this plugin is missing a feature you need, consider sponsoring development. Pull requests always welcome!
A Dokku plugin to integrate with kubernetes.
Requirements
- The
dokku-registryplugin should be installed and configured for your app - A configured kubectl (
/home/dokku/.kube/config) that can talk to your cluster - Dokku 0.20.4+
Installation
You can install this plugin by issuing the command:
dokku plugin:install https://github.com/dokku/dokku-scheduler-kubernetes
After the plugin has successfully been installed you need to install the plugin's dependencies by running the command:
dokku plugin:install-dependencies
Functionality
The following functionality has been implemented
- Deployment and Service annotations
- Domain proxy support via the Nginx Ingress Controller
- Environment variables
- Letsencrypt SSL Certificate integration via CertManager
- Pod Disruption Budgets
- Resource limits and reservations (reservations == kubernetes requests)
- If no unit is specified, the values for memory are assumed to be in Mi (Megabytes)
- Zero-downtime deploys via Deployment healthchecks
- Traffic to non-web containers (via a configurable list)
Unsupported at this time:
- Custom docker-options (not applicable)
- Deployment timeouts (planned: #30)
- Dockerfile support (planned: #29)
- Encrypted environment variables (planned: #9)
- Proxy port integration (planned: #29)
- Manual SSL Certificates (planned: #28)
- The following scheduler commands are unimplemented:
enter(planned: #12)logs:failedrun(planned: #12)
If this plugin is missing a feature you need, consider sponsoring development. Pull requests always welcome!
Notes
- Each
Procfileentry will be turned into a kubernetesDeploymentobject. - Each
Procfileentry name must be a valid DNS subdomain. - The
webprocess will also create aServiceobject. - Non-web processes can create a
Serviceobject via a configurable property. - All created Kubernetes objects are tracked to completion via
kubedog. - All manifest templates are hardcoded in the plugin.
Usage
Set the scheduler to kubernetes. This can be done per-app or globally:
# globally
dokku scheduler:set --global selected kubernetes
# per-app
dokku scheduler:set $APP selected kubernetes
You also need to ensure your kubectl has the correct context specified:
# as the dokku user
kubectl config use-context YOUR_NAME
And configure your registry:
dokku registry:set $APP server gcr.io/dokku/
Assuming your Dokku installation can push to the registry and your kubeconfig is valid, Dokku will deploy the app against the cluster.
The namespace in use for a particular app can be customized using the :set command. This will apply to all future invocations of the plugin, and will not modify any existing resources. If unspecified, the namespace in use is the cluster default namespace. The scheduler-kubernetes will create the namespace via a kubectl apply.
dokku scheduler-kubernetes:set $APP namespace test
If deploying from a private docker registry and the cluster needs does not have open access to the registry, an imagePullSecrets value can be specified. This will be injected into the kubernetes deployment spec at deploy time.
dokku scheduler-kubernetes:set $APP imagePullSecrets registry-credential
See this doc for more details on creating an
imagePullSecretssecret file.
Service Ingress
This functionality assumes a helm-installed
nginx-ingresscontroller:helm install ingress-nginx ingress-nginx/ingress-nginx --set controller.publishService.enabled=true
A Kubernetes Service object is created for each web process. Additionally, if the app has it's proxy-type set to nginx-ingress, then we will also create or update a Kubernetes ingress object within the namespace configured for the app. This can be set as follows:
dokku config:set $APP DOKKU_APP_PROXY_TYPE=nginx-ingress
The ingress object has the following properties:
- The name of the ingress object will be
app-ingress. - All kubernetes-deployed apps within the same namespace are added to the ingress object.
- Configured app domains are respected as unique rules.
- The configured service port for each rule is hardcoded to
5000.
To modify the manifest before it gets applied to the cluster, use the pre-kubernetes-ingress-apply plugin trigger.
Service objects can also be created for specific process types by configuring the service-process-types property. This is a comma-separated list that is specific to an individual application, and will always implicitly include the web process type.
dokku scheduler-kubernetes:set $APP service-process-types http,worker
The PORT environment variable is hardcoded to 5000. No Ingress object is created for non-web processes.
Automated SSL Integration via CertManager
This functionality assumes a helm-installed
cert-managerCRD:kubectl create namespace cert-manager helm repo add jetstack https://charts.jetstack.io helm upgrade cert-manager jetstack/cert-manager --namespace cert-manager --version v1.10.0 --set installCRDs=true --install
At this time, the scheduler-kubernetes does not have support for custom SSL certificates. However, domains associated with an app can have a Letsencrypt SSL certificate provisioned automatically via the CertManager Kubernetes add-on.
To start using the CertManager, we will first need to set the issuer email
dokku config:set --global [email protected]
Next, any apps that will require cert-manager integration will need to have that enabled:
dokku scheduler-kubernetes:set $APP cert-manager-enabled true
On the next deploy or domain name change, the CertManager entry will be automatically updated to fetch an SSL certificate for all domains associated with all applications on the same ingress object.
Pod Disruption Budgets
A PodDisruptionBudget object can be created, and will apply to all process types in an app. To configure this, the pod-max-unavailable and pod-min-available properties can be set:
dokku scheduler-kubernetes:set $APP pod-min-available 1
# available in kubernetes 1.7+
dokku scheduler-kubernetes:set $APP pod-max-unavailable 1
Pod Disruption Budgets will be updated on next deploy.
Deployment Autoscaling
This feature requires an installed metric server, uses the
autoscaling/v2beta2api, and will apply immediately. Onlyresourcerules are supported when using the official metric-server, all others require the prometheus-operator and prometheus-adapter.
By default, Kubernetes deployments are not set to autoscale, but a HorizontalPodAutoscaler object can be managed for an app on a per-process type basis - referenced as $PROC_TYPE below. Using the HorizontalPodAutoscaler will disable the normal usage of ps:scale for the specified app/process-type combination, as per Kubernetes best practices.
At a minimum, both a min/max number of replicas must be set.
# set the min number of replicas
dokku scheduler-kubernetes:autoscale-set $APP $PROC_TYPE min-replicas 1
# set the max number of replicas
dokku scheduler-kubernetes:autoscale-set $APP $PROC_TYPE max-replicas 10
You also need to add autoscaling rules. These can be managed via the :autoscale-rule-add command. Adding a rule for a target-name/metric-type combination that already exists will override any existing rules.
Rules can be added for the following metric types:
external:- format:
external:$NAME:$TYPE:$VALUE[:$SELECTOR] - fields:
$NAME: The name of the external metric to track$TYPE(valid values:[AverageValue, Value]): The type of the target.$VALUE: The value to track.$SELECTOR(optional): The selector to use for filtering to one or more specific metric series.
- format:
ingress:- format:
ingress:$NAME:$TYPE:$VALUE[:$INGRESS] - fields:
$NAME: The name of the ingress metric to track.$TYPE(valid values:[AverageValue, Value]): The type of the target.$VALUE: The value to track.$INGRESS(default:app-ingress): The name of the ingress object to filter on.
- format:
pods- format:
pods:$NAME:$TYPE:$VALUE - fields:
$NAME: The name of the metric from the pod resource to track.$TYPE(valid values:[AverageValue]): The type of the target.$VALUE: The value to track.
- format:
resource- format:
resource:$NAME:$TYPE:$VALUE - fields:
$NAME(valid values:[cpu, memory]): The name of the metric to track.$TYPE(valid values:[AverageValue, Utilization]): The type of the target.$VALUE: The value to track.
- format:
# set the cpu average utilization target
dokku scheduler-kubernetes:autoscale-rule-add $APP $PROC_TYPE resource:cpu:Utilization:50
Rules can be listed via the autoscale-rule-list command:
dokku scheduler-kubernetes:autoscale-rule-list $APP $PROC_TYPE
Rules can be removed via the :autoscale-rule-remove command. This command takes the same arguments as the autoscale-rule-add command, though the value is optional. If a rule matching the specified arguments does not exist, the command will still return 0.
# remove the cpu rule
dokku scheduler-kubernetes:autoscale-rule-remove $APP $PROC_TYPE resource:cpu:Utilization:50
# remove the cpu rule by prefix
dokku scheduler-kubernetes:autoscale-rule-remove $APP $PROC_TYPE resource:cpu:Utilization
Autoscaling rules are applied automatically during the next deploy, though may be immediately applied through the :autoscale-apply command:
dokku scheduler-kubernetes:autoscale-apply $APP $PROC_TYPE
Persistent Volume Claims (pvc)
Pods use pvcs as volumes. For volumes that support multiple access modes, the user specifies which mode is desired when using their claim as a volume in a Pod. See supported access modes by providers
# create a pvc
dokku scheduler-kubernetes:add-pvc $NAME $SIZE [--access-mode $MODE][--namespace $NAMESPACE ][--storage-class-name $CLASS]
Fields:
- $NAME: The name of the persistent volume claim
- $SIZE is a numeric size of claim in MB.
- $MODE: Access mode must be either of ReadWriteOnce, ReadOnlyMany or ReadWriteMany. Default is ReadWriteOnce
- $NAMESPACE : The namespace for the pvc. Default is "default"
- $CLASS: The storage class name. Default is k8s providers default storage class
# list pvcs
dokku scheduler-kubernetes:list-pvc [$NAMESPACE]
# delete pvc
dokku scheduler-kubernetes:remove-pvc $NAME --namespace $NAMESPACE
Mounting a volume using PVC
Pods access storage by using the claim as a volume.
# mounting a volume (requires a re-deploy to take effect)
dokku scheduler-kubernetes:mount $APP_NAME $PVC_NAME $CONTAINER_PATH
Fields:
- $APP_NAME: The name of the app
- $PVC_NAME: Name of persistent volume claim. Will be used as volume name. Claims must exist in the same namespace as the app.
List mounted volumes for an app:
# list mounted volumes
dokku scheduler-kubernetes:list-mount $APP_NAME
Unmount a volume:
# unmount a volume (requires a re-deploy to take effect)
dokku scheduler-kubernetes:unmount $APP_NAME $PVC_NAME $CONTAINER_PATH
Unmount all volumes:
# unmount all (requires a re-deploy to take effect)
dokku scheduler-kubernetes:unmount-all $APP_NAME
Kubernetes Manifests
Warning: Running this command exposes app environment variables to stdout.
The kubernetes manifest for a deployment or service can be displayed using the :show-manifest command. This manifest can be used to inspect what would be submitted to Kubernetes.
# show the deployment manifest for the `web` process type
dokku scheduler-kubernetes:show-manifest $APP $PROC_TYPE $MANIFEST_TYPE
This command can be used like so:
# show the deployment manifest for the `web` process type
dokku scheduler-kubernetes:show-manifest node-js-sample web
# implicitly specify the deployment manifest
dokku scheduler-kubernetes:show-manifest node-js-sample web deployment
# show the service manifest for the `web` process type
dokku scheduler-kubernetes:show-manifest node-js-sample web service
The command will exit non-zero if the specific manifest for the given app/process type combination is not found.
Annotations
Warning: There is no validation for on annotation keys or values.
Deployment Annotations
These can be managed by the :deployment-annotations-set command.
# command structure
dokku scheduler-kubernetes:deployment-annotations-set $APP $ANNOTATION_NAME $ANNOTATION_VALUE
# set example
dokku scheduler-kubernetes:deployment-annotations-set node-js-sample pod.kubernetes.io/lifetime 86400s
# unset example, leave the value empty
dokku scheduler-kubernetes:deployment-annotations-set node-js-sample pod.kubernetes.io/lifetime
Currently, these apply globally to all processes within a deployed app.
Pod Annotations
These can be managed by the :pod-annotations-set command.
# command structure
dokku scheduler-kubernetes:pod-annotations-set $APP name value
# set example
dokku scheduler-kubernetes:pod-annotations-set node-js-sample pod.kubernetes.io/lifetime 86400s
# unset example, leave the value empty
dokku scheduler-kubernetes:pod-annotations-set node-js-sample pod.kubernetes.io/lifetime
Currently, these apply globally to all processes within a deployed app.
Service Annotations
These can be managed by the :service-annotations-set command.
# command structure
dokku scheduler-kubernetes:service-annotations-set $APP name value
# set example
dokku scheduler-kubernetes:service-annotations-set node-js-sample pod.kubernetes.io/lifetime 86400s
# unset example, leave the value empty
dokku scheduler-kubernetes:service-annotations-set node-js-sample pod.kubernetes.io/lifetime
Currently, they are applied to the web process, which is the only process for which a Kubernetes Service is created.
Ingress Annotations on Namespaces
These can be managed by the :ingress-annotations-set command.
# command structure
dokku scheduler-kubernetes:ingress-annotations-set $NAMESPACE name value
# set example
dokku scheduler-kubernetes:ingress-annotations-set my-namespace nginx.ingress.kubernetes.io/affinity cookie
# unset example, leave the value empty
dokku scheduler-kubernetes:ingress-annotations-set my-namespace nginx.ingress.kubernetes.io/affinity
Currently, these apply to all deployments within an namespace.
Rolling Updates
For deployments that use a rollingUpdate for rollouts, a rollingUpdate may be triggered at a later date via the :rolling-update command.
dokku scheduler-kubernetes:rolling-update $APP
Health Checks
Health checks for the app may be configured in app.json, based on Kubernetes
liveness and readiness
probes.
All Kubernetes options that can occur within a Probe
object
are supported, though syntax is JSON rather than YAML. The variable $APP may
be used to represent the app name.
If a process type is not configured for a given probe type (liveness or
readiness), any probe of the same type for the "*" default process type is
used instead.
Here (click the triangle to expand) is an example JSON for Kubernetes health checks.
{
"healthchecks": {
"web": {
"readiness": {
"httpGet": {
"path": "/{{ $APP }}/readiness_check",
"port": 5000
},
"initialDelaySeconds": 5,
"periodSeconds": 5
}
},
"*": {
"liveness": {
"exec": {
"command": ["/bin/pidof", "/start"]
},
"initialDelaySeconds": 5,
"periodSeconds": 5
},
"readiness": {
"httpGet": {
"path": "web processes override this.",
"port": 5000
},
"initialDelaySeconds": 5,
"periodSeconds": 5
}
}
}
}
Plugin Triggers
The following custom triggers are exposed by the plugin:
post-deploy-kubernetes-apply
- Description: Allows a user to interact with the
deploymentmanifest after it has been submitted. - Invoked by:
- Arguments:
$APP$PROC_TYPE$MANIFEST_FILE$MANIFEST_TYPE - Example:
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
# TODO
pre-ingress-kubernetes-apply
- Description: Allows a user to interact with the
ingressmanifest before it has been submitted. - Invoked by:
core-post-deploy,post-domains-update,post-proxy-ports-update, andproxy-build-configtriggers - Arguments:
$APP$MANIFEST_FILE - Example:
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
# TODO
pre-deploy-kubernetes-apply
- Description: Allows a user to interact with the
deployment|servicemanifest before it has been submitted. - Invoked by:
scheduler-deploytrigger and:show-manifest - Arguments:
$APP$PROC_TYPE$MANIFEST_FILE$MANIFEST_TYPE - Example:
#!/usr/bin/env bash
set -eo pipefail; [[ $DOKKU_TRACE ]] && set -x
# TODO
Repo liên quan
DevOps Exercises is a GitHub repository collecting 2624 questions and exercises spanning Linux, networking, Kubernetes, Terraform, and cloud platforms, written as plain markdown Q&A with no app or course wrapped around it.
OpenClaw's README promises a self-hosted assistant in 20+ chat apps. We set that against GitHub activity and the published advisory record.
Skills For Real Engineers packages Matt Pocock's own agent workflow into roughly 25 slash-command skills covering requirements-gathering, TDD, debugging, and codebase-architecture review. Install the managed Claude Code plugin to track his updates automatically, or pull editable files via skills.sh and fork them. It doesn't automate development for you — it disciplines the AI coding agent you already run.
ECC is an MIT-licensed system from affaan-m/ECC that installs into AI coding agent harnesses such as Claude Code, Codex, and several others, adding skills, specialized agents, persistent memory, and AgentShield security scanning around whatever large language model the harness already runs. The README positions it as developer productivity tooling for LLM agent development and agent performance tuning rather than a code generation tool itself, composing around whichever model the harness already calls.
Trả lời nhanh
dokku/dokku-scheduler-kubernetes có bao nhiêu sao?
dokku/dokku-scheduler-kubernetes có 159 sao GitHub — tải lại trang để xem số mới nhất, hoặc xem trực tiếp github.com/dokku/dokku-scheduler-kubernetes. TopGit phản chiếu số sao của GitHub nhưng không cam kết đến từng phút.
dokku/dokku-scheduler-kubernetes có những chủ đề gì?
GitHub topics của dokku/dokku-scheduler-kubernetes: "dokku", "dokku-plugin", "ingress", "k8s", "kubernetes". TopGit xếp repo vào nhóm Developer Tools.
dokku/dokku-scheduler-kubernetes còn đang phát triển không?
Commit gần nhất trên dokku/dokku-scheduler-kubernetes là 7 tháng trước (theo timestamp GitHub). Repo có 12 fork — một chỉ báo về mức độ quan tâm của cộng đồng.
dokku/dokku-scheduler-kubernetes là gì?
dokku/dokku-scheduler-kubernetes (dokku/dokku-scheduler-kubernetes) là dự án Shell trên GitHub. Theo mô tả gốc: deprecated: use scheduler-k3s plugin in dokku core
dokku/dokku-scheduler-kubernetes so với các dự án Developer Tools khác thế nào?
dokku/dokku-scheduler-kubernetes được TopGit xếp vào nhóm Developer Tools, với 159 sao GitHub và viết bằng Shell. Xem trang chủ đề Developer Tools trên TopGit để so sánh với các dự án tương tự theo số sao và mức độ hoạt động.
dokku/dokku-scheduler-kubernetes viết bằng ngôn ngữ gì?
dokku/dokku-scheduler-kubernetes chủ yếu viết bằng Shell. Trường "language" của GitHub dựa trên phần lớn byte ở nhánh mặc định.
Vì sao dokku/dokku-scheduler-kubernetes được xếp vào nhóm Developer Tools?
TopGit xếp dokku/dokku-scheduler-kubernetes vào nhóm Developer Tools dựa trên GitHub topics và mô tả của repo (gắn thẻ: "dokku", "dokku-plugin", "ingress"). Việc phân loại dựa trên metadata thật của repo, không phải đoán theo cảm tính biên tập.
Đọc đầy đủ README ở tab phía trên.
Chưa chắc dokku-scheduler-kubernetes có hợp với bạn?
Để ChatGPT, Claude hoặc Perplexity tìm hiểu giúp — bấm bên dưới và xem AI nói gì về dokku-scheduler-kubernetes.