forked from okteto/docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request okteto#274 from okteto/release-1.4
Add release notes for 1.4
- Loading branch information
Showing
211 changed files
with
13,192 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
title: Resource Cleanup | ||
description: Okteto saves resources by putting to sleep idle applications and cleaning up unused namespaces. | ||
sidebar_label: Resource Cleanup | ||
id: cleanup | ||
--- | ||
|
||
import Image from '@theme/Image'; | ||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
|
||
## Sleeping resources | ||
|
||
To automatically save resources in your cluster, you can configure Okteto to automatically scale inactive applications and resources to zero if they haven't been used for longer than the `inactivity` period. | ||
|
||
## Inactive Applications and Resources | ||
|
||
Okteto considers an application or resources inactive if a user hasn't performed any of the following tasks during the `inactivity` period: | ||
|
||
- Upgrade or redeploy via the UI or the command line. | ||
- Launched a development container with `okteto up`. | ||
- Pushed the latest version of your code with `okteto push`. | ||
|
||
Service accounts, config maps, secrets, or volumes you create will be unaffected by this operation. | ||
|
||
## Wake sleeping resources | ||
|
||
Okteto's UI will notify you when there are sleeping resources in your namespace. Press the **Wake all** button to activate all sleeping resources at once. | ||
|
||
<p align="center"><Image src="/docs/administration/images/wake.png" alt="wake a sleeping resource" width="1000" /></p> | ||
|
||
Sleeping resources are also started if anyone visits any of the public endpoints of your application. | ||
|
||
## Delete Unused Namespaces | ||
|
||
Namespaces and all the resources and data contained within will be deleted if they are not used for longer than the `deletion` period. | ||
|
||
## Persistent resources <TiersList tiers="Scale Enterprise Self-Hosted" /> | ||
|
||
In case you are interested on the garbage collector but you want to skip some specific namespace, you can mark it as `persistent`. To do so, you can add the label `dev.okteto.com/persistent` to it or [use the admin view](/docs/administration/dashboard/#namespaces-section). | ||
|
||
In case you want more granularity and only want to persist specific deployments or statefulsets within a namespace, you can include the label `dev.okteto.com/persistent` on those resources. In that case, the garbage collector will ignore only those specific resources while scaling down the rest of the namespace. | ||
|
||
|
||
## Configuration Steps <TiersList tiers="Scale Enterprise Self-Hosted" /> | ||
|
||
You can consult the `deletion` and `inactivity` periods in the [Admin Dashboard](/docs/administration/dashboard). | ||
|
||
<Tabs | ||
defaultValue="self-hosted" | ||
values={[ | ||
{ label: 'Self-Hosted', value: 'self-hosted', }, | ||
{ label: 'SaaS', value: 'saas', }, | ||
]} | ||
> | ||
<TabItem value="self-hosted"> | ||
|
||
You can enable and customize the `inactivity` and `deletion` periods via the [garbage collector's settings](/docs/self-hosted/administration/configuration/#gc). | ||
|
||
</TabItem> | ||
|
||
<TabItem value="saas"> | ||
|
||
If your instance is hosted by Okteto, [reach out to support](https://okteto.com/support) to modify this configuration. | ||
|
||
</TabItem> | ||
</Tabs> | ||
|
Oops, something went wrong.