Deploy your first application
An application in Kube-DC is one resource, an Application, that says what
to run: a container image, or a GitHub repository the platform builds. The
platform starts the pods, gives the app an HTTPS address and keeps every
version that ran, so you can roll back.
This guide deploys a container image with kubectl or an AI app. In the
console, where your provider makes new apps as Applications,
Applications → New application → From a container image does the same: it asks for a name, the image, the port and whether the app is
public, shows the manifest it applies, and follows the app until it is
ready.
Other ways to deploy
This guide covers one of three options, an Application from a container image. Ways to deploy compares all three. The other two:
- An Application from a GitHub repository: where your provider offers builds, the platform builds the repository on every push and can make a preview for every pull request. The console's New application starts here. See Deploy from GitHub.
- Your own Kubernetes manifests or a Helm chart: Deployments, Services and Jobs applied directly, without an Application. See Projects.
Before you begin
You need:
- a Project with free CPU, memory and pod quota;
- CLI access, with
kubectlconnected to that Project; - the
developeroradminrole in the Project.
Your installation must run Applications: check it before you apply anything
(see Check that your installation runs Applications: enabled and create both true).
Where it does not, deploy your own Deployment and Service instead (see
Deploy Kubernetes manifests directly).
1. Create the application
Save this as hello.yaml:
apiVersion: apps.kube-dc.com/v1alpha1
kind: Application
metadata:
name: hello
spec:
source:
image:
reference: nginxinc/nginx-unprivileged:1.27-alpine
run:
port: 8080 # the port the container listens on (8080 is the default)
Apply it and wait until it is ready:
kubectl apply -f hello.yaml
kubectl wait --for=condition=Ready app/hello --timeout=5m
kubectl get app hello
NAME REPOSITORY COMMIT STATUS URL AGE
hello Ready https://hello-acme-demo.<platform-domain> 2m
The certificate for the address takes 1 to 3 minutes. Until it is issued,
the URL column is empty and kubectl get app shows Deploying;
kubectl wait returns once the address is live.
Behind the scenes the platform has created a Deployment and a Service named
hello and published the address on the platform's shared HTTPS entry
point, with its own certificate. No public IP is used.
2. Open it
Open the address from the URL column, or:
curl -sI "$(kubectl get app hello -o jsonpath='{.status.url}')" | head -1
In the console, open your Project, then Applications, and click hello. The Overview tab's Progress shows each step (an image app needs no build, so those steps say Not needed), and Open the app opens the address.
If the app does not become ready, kubectl describe app hello shows which
step waits and why, for example an image that cannot be pulled.
If the pods run but the URL column stays empty, ask the Service hello
whether its address is published:
kubectl get svc hello \
-o jsonpath='{.metadata.annotations.service\.nlb\.kube-dc\.com/route-state}'
{"state":"Waiting","reason":"Certificate","hostname":"hello-acme-demo.<platform-domain>","since":"2026-11-29T10:28:29Z"}
Waitingmeans the platform publishes the address by itself once the reason clears;Certificateis the usual one for the first few minutes.Refusedmeans you have to change something. With a custom domain, the common reasons areDomainNotVerified(verify the domain first) andHostnameLimit: every hostname outside the platform domain counts toward your organization's custom hostname limit, 64 by default.
The platform address of this example never counts toward that limit. See Check whether a hostname is published for every state and reason, and Custom hostname limit for how to read your organization's count.
3. Ship a new version
Change the image tag in hello.yaml (for example to 1.28-alpine) and apply
it again. Every change to what the pods run, such as the image, a variable or
the resources, makes a new numbered release. The Builds & releases tab
lists them.
To go back, choose Roll back to this release on an earlier release. The app stays on that release until you click Resume deploys. See Roll back an application.
Deploy it with an AI app
Connect an AI app to the Project's hosted MCP server and ask, for example:
Deploy the image nginxinc/nginx-unprivileged:1.27-alpine as an app named hello, listening on port 8080, and tell me its address.
The AI app calls deploy_app, which creates the same Application,
and rollout_status to report the address. This needs an installation that
runs Applications (see
Check that your installation runs Applications: enabled and create both true);
elsewhere deploy_app refuses, and the AI app applies a Deployment and a
Service instead (see
Deploy Kubernetes manifests directly). For an Application you can switch between the console, kubectl and an AI app at any
time: they all change the same resource.
Clean up
kubectl delete app hello
This removes the app, its Deployment, Service and address.
When an Application does not fit
An Application runs one container per pod and publishes one HTTP port on one hostname. For anything else, such as a TCP or UDP service, sidecar containers, several hostnames or a StatefulSet, apply your own Kubernetes manifests: Projects accept Deployments, StatefulSets, Services and Jobs (see Project compatibility), and Service exposure publishes them. Ways to deploy has an example.
Next steps
- Manage applications: variables, Secrets, your own domain, the CLI and deleting an app
- Release commands, workers and cron jobs, autoscaling and a data volume
- Deploy a full WordPress stack: an Application with a managed database and a volume
- Deploy from GitHub: builds on push and pull request previews