Examples
These examples lead to complete, supported guides instead of duplicating YAML that can drift from the product.
A Kube-DC Project is the customer workload boundary. Kubernetes implements
it as a backing namespace named {organization}-{project}. Use a Managed Cluster
when an example needs CRDs, operators, additional namespaces, or cluster-scoped
RBAC.
Start Here
| Goal | Guide |
|---|---|
| Deploy a small web application | Deploy Your First Application |
| Build a fuller application stack | Deploy a WordPress Stack |
| Create and connect to a VM | Create a Virtual Machine |
| Provision PostgreSQL or MariaDB | Managed Databases |
| Create a Managed Cluster | Provision a Managed Cluster |
Networking
| Goal | Guide |
|---|---|
| Publish HTTP or HTTPS with a hostname | Service Exposure |
| Expose selected TCP or UDP ports | Service Exposure |
| Map an address directly to a VM | External and Floating IPs |
| Keep communication private | Private Networking |
An external IP can be cloud-internal or public. Check the address type before describing an endpoint as internet-accessible.
Storage and Data
| Goal | Guide |
|---|---|
| Attach block storage to a Pod or VM | Block Storage |
| Create and use an S3-compatible bucket | Object Storage |
| Configure database backups | Managed Databases |
| Design a recovery plan | Data Protection and Recovery |
Security and Automation
| Goal | Guide |
|---|---|
| Store application secrets | Secrets Manager |
| Request a certificate | Certificate Management |
| Create an encryption key | Key Management |
| Deliver from Git | GitOps |
| Grant team access | User and Group Management |
Before Applying YAML
- Select the target Project context with
kube-dc use. - Replace example namespaces with the exact backing namespace shown by the CLI.
- Review resource requests against Organization and Project quota.
- Render Helm charts and reject unsupported cluster-scoped resources.
- Apply the manifest and wait for readiness.
- Record cleanup commands before creating persistent or billable resources.
kube-dc use
kubectl diff -f example.yaml
kubectl apply -f example.yaml
kubectl get pods,svc
Project boundary
Do not apply examples that create Namespace, CRD, ClusterRole, or
StorageClass objects with a Project kubeconfig. Adapt the chart or run it in a
Managed Cluster.