> For the complete documentation index, see [llms.txt](https://developer.harness.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.harness.io/continuous-delivery/troubleshooting-and-resources/armory/general/pausing-in-flight-kubernetes-deployments-in-spinnaker.md).

# Pausing in-flight Kubernetes deployments in Spinnaker

### Introduction <a href="#introduction" id="introduction"></a>

A user would like to pause a Kubernetes deployment via the Spinnaker UI directly.

### Prerequisites <a href="#prerequisites" id="prerequisites"></a>

* An actively-running Kubernetes deployment that shows up in the Spinnaker UI.\* Output of `{your_gate_endpoint}/manifests/{your_account_name}/{your_namespace}/deployment%20{your_deployment_name}` has `status.paused.state: false` and `status.stable.state: false`\* `settings-local.js` for Deck has `window.spinnakerSettings.kubernetesAdHocInfraWritesEnabled = true;` as per the *Kubernetes infrastructure in the UI* documentation: <https://docs.armory.io/docs/release-notes/rn-armory-spinnaker/armoryspinnaker_v2-26-0/#kubernetes-infrastructure-in-the-ui>

### Instructions <a href="#instructions" id="instructions"></a>

To achieve this via the Spinnaker UI

* Click on the actively running deployment you would like to pause.\* A menu displaying detailed information on that deployment will show up on the right-hand side.\* Inside it, from the `Deployment Actions` drop-down - select `Pause`. It is important to note that the button **only** appears while the deployment is running, and before it’s stable. Depending on the size, this may entail that it only shows up for a brief period of time during each pipeline execution. Because of this, a suggested workaround to pause it is to manually issue a `kubectl rollout pause deployment.v1.apps/` command, as per the official Kubernetes documentation: <https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#pausing-and-resuming-a-deployment>
