Skip to content
Proud to collaborate with Microsoft for Startups

k8s.app.teardown ​

Tear down a containerised app: Ingress/HPA/PDB + Service + Deployment + ConfigMap + Secret; PVCs only when delete_pvcs=true

Tear down a single-container app from a Kubernetes cluster.

Overview ​

PropertyValue
Workflow typeDag
LibraryApp-kubernetes
Version1.0

Input Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidYes—CloudConnection UUID for the target Kubernetes cluster, picked from the organization's kubernetes-type connections.
namespacestringYes—Namespace the app lives in
namestringYes—App name (same value passed to k8s.app.deploy)
volume_claimsjsonNo—Same volume_claims list used at deploy. Required with delete_pvcs to name the PVCs.
delete_pvcsbooleanNo—If true, delete PVCs named from volume_claims. Default false — data-preserving.

Output Schema ​

FieldTypeRequiredDefaultDescription
connection_uuiduuidNo—CloudConnection UUID for the target cluster, echoed from input.
namespacestringNo——
namestringNo——
volume_claimsjsonNo——
delete_pvcsbooleanNo——
workflow_run_uuidstringNo—Engine-stamped DAG run id written by action_start.
delete_ingressjsonNo——
delete_hpajsonNo——
delete_pdbjsonNo——
delete_servicejsonNo——
delete_deploymentjsonNo——
delete_configmapjsonNo——
delete_secretjsonNo——
delete_pvc_0jsonNo——
delete_pvc_1jsonNo——
delete_pvc_2jsonNo——
delete_pvc_3jsonNo——
delete_pvc_4jsonNo——
delete_pvc_5jsonNo——
delete_pvc_6jsonNo——
delete_pvc_7jsonNo——
failure_reasonstringNo——
failure_typestringNo——
failed_actionstringNo——
failed_at_statestringNo——
failed_stepstringNo——
failed_layerstringNo——
errorstringNo——
error_typestringNo——

DAG Layers ​

#LayerStepsCompensation
1policykubernetes.ingress.delete, kubernetes.horizontalpodautoscaler.delete, kubernetes.poddisruptionbudget.delete—
2exposekubernetes.service.delete—
3workloadkubernetes.deployment.delete—
4configkubernetes.configmap.delete, kubernetes.secret.delete, kubernetes.pvc.delete, kubernetes.pvc.delete, kubernetes.pvc.delete, kubernetes.pvc.delete, kubernetes.pvc.delete, kubernetes.pvc.delete, kubernetes.pvc.delete, kubernetes.pvc.delete—

Execution Flow ​

Sub-workflows ​

Sub-workflowStep name
kubernetes.ingress.deletedelete_ingress
kubernetes.horizontalpodautoscaler.deletedelete_hpa
kubernetes.poddisruptionbudget.deletedelete_pdb
kubernetes.service.deletedelete_service
kubernetes.deployment.deletedelete_deployment
kubernetes.configmap.deletedelete_configmap
kubernetes.secret.deletedelete_secret
kubernetes.pvc.deletedelete_pvc_0

API Usage ​

bash
POST /api/workflows/start
Content-Type: application/json

{
  "workflow_type": "k8s.app.teardown",
  "initial_data": {
    "connection_uuid": "value",
    "namespace": "value",
    "name": "value"
  }
}