Skip to content

Commit cb64f33

Browse files
authored
Merge pull request #199 from vshn/suspend-instances
Add documentation for suspending instances
2 parents e39440a + 388fbbc commit cb64f33

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

docs/modules/ROOT/nav.adoc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
* xref:references/auto-update.adoc[Auto-Update]
1212
* xref:references/permissions.adoc[Namespace Permissions]
1313
* xref:references/quotas.adoc[]
14+
* xref:references/suspending.adoc[]
1415
1516
.xref:vshn-managed/forgejo/index.adoc[Forgejo]
1617
* xref:vshn-managed/forgejo/backup.adoc[Backup]
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
= Suspending an instance
2+
3+
Suspending an instance can be useful when the service is not needed temporarily, such as for testing environments, development instances, or services that are only used during specific time periods.
4+
5+
By suspending an instance, no replicas of that specific service are deployed, which reduces resource consumption and cost.
6+
7+
== How to suspend an instance
8+
9+
To suspend an instance, set the number of instances to `0` in the service specification.
10+
11+
.Example: Suspending a PostgreSQL instance
12+
[source,yaml]
13+
----
14+
apiVersion: vshn.appcat.vshn.io/v1
15+
kind: VSHNPostgreSQL
16+
metadata:
17+
name: my-postgres-instance
18+
namespace: my-namespace
19+
spec:
20+
parameters:
21+
instances: 0
22+
----
23+
24+
After applying this configuration, the instance will be suspended and no pods will be running.
25+
26+
[IMPORTANT]
27+
====
28+
You will still be billed for the persistent storage even when an instance is suspended.
29+
====
30+
31+
== Resuming a suspended instance
32+
33+
To resume a suspended instance, change the `instances` value back to your desired number.
34+
35+
.Example: Resuming an instance
36+
[source,yaml]
37+
----
38+
spec:
39+
parameters:
40+
instances: 1 # Resume with a single instance
41+
----

0 commit comments

Comments
 (0)