Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update volume expansion examples #617

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions docs/examples/ferretdb/quickstart/ferretdb-external.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: kubedb.com/v1alpha2
kind: FerretDB
metadata:
name: ferretdb-external
namespace: demo
spec:
version: "1.18.0"
authSecret:
externallyManaged: true
name: ha-postgres-auth
sslMode: disabled
storageType: Durable
storage:
storageClassName: "standard"
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 100Mi
backend:
externallyManaged: true
postgres:
service:
name: ha-postgres
namespace: demo
pgPort: 5432
terminationPolicy: WipeOut
20 changes: 20 additions & 0 deletions docs/examples/ferretdb/quickstart/ferretdb-internal.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
apiVersion: kubedb.com/v1alpha2
kind: FerretDB
metadata:
name: ferret
namespace: demo
spec:
version: "1.18.0"
authSecret:
externallyManaged: false
sslMode: disabled
storageType: Durable
storage:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 500Mi
backend:
externallyManaged: false
terminationPolicy: WipeOut
3 changes: 2 additions & 1 deletion docs/examples/mongodb/autoscaling/storage/mg-as-rs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ spec:
replicaSet:
trigger: "On"
usageThreshold: 60
scalingThreshold: 50
scalingThreshold: 50
expansionMode: Online
3 changes: 2 additions & 1 deletion docs/examples/mongodb/autoscaling/storage/mg-as-sh.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ spec:
shard:
trigger: "On"
usageThreshold: 60
scalingThreshold: 50
scalingThreshold: 50
expansionMode: Online
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ spec:
standalone:
trigger: "On"
usageThreshold: 60
scalingThreshold: 50
scalingThreshold: 50
expansionMode: Online
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ spec:
databaseRef:
name: mg-replicaset
volumeExpansion:
replicaSet: 2Gi
replicaSet: 2Gi
mode: Online
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ spec:
name: mg-sharding
volumeExpansion:
shard: 2Gi
configServer: 2Gi
configServer: 2Gi
mode: Online
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@ spec:
databaseRef:
name: mg-standalone
volumeExpansion:
standalone: 2Gi
standalone: 2Gi
mode: Online
1 change: 1 addition & 0 deletions docs/examples/redis/autoscaling/storage/rd-as.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ spec:
trigger: "On"
usageThreshold: 60
scalingThreshold: 50
expansionMode: Online
1 change: 1 addition & 0 deletions docs/guides/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ aliases:
Guides to show you how to perform tasks with KubeDB:

- [Elasticsearch](/docs/guides/elasticsearch/README.md). Shows how to manage Elasticsearch & OpenSearch using KubeDB.
- [FerretDB](/docs/guides/ferretdb/README.md). Shows how to manage FerretDB using KubeDB.
- [MariaDB](/docs/guides/mariadb). Shows how to manage MariaDB using KubeDB.
- [Memcached](/docs/guides/memcached/README.md). Shows how to manage Memcached using KubeDB.
- [MongoDB](/docs/guides/mongodb/README.md). Shows how to manage MongoDB using KubeDB.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,7 @@ spec:
trigger: "On"
usageThreshold: 60
scalingThreshold: 50
expansionMode: Online
```

Here,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ spec:
node:
trigger: "On"
usageThreshold: 60
scalingThreshold: 50
scalingThreshold: 50
expansionMode: Online
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ spec:
trigger: "On"
usageThreshold: 60
scalingThreshold: 50
expansionMode: Online
```

Here,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,5 @@ spec:
data:
trigger: "On"
usageThreshold: 60
scalingThreshold: 50
scalingThreshold: 50
expansionMode: Online
2 changes: 2 additions & 0 deletions docs/guides/elasticsearch/concepts/autoscaler/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ spec:
trigger: "On"
usageThreshold: 60
scalingThreshold: 50
expansionMode: Online
```

**Sample `ElasticsearchAutoscaler` YAML for the Elasticsearch topology cluster:**
Expand Down Expand Up @@ -111,6 +112,7 @@ spec:
trigger: "On"
usageThreshold: 60
scalingThreshold: 50
expansionMode: Online
```

Here, we are going to describe the various sections of a `ElasticsearchAutoscaler` crd.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Suppose you have a KubeDB-managed [Elasticsearch](/docs/guides/elasticsearch/con
As with all other Kubernetes objects, an `ElasticsearchDashboard` needs `apiVersion`, `kind`, and `metadata` fields. It also needs a `spec` section.

```yaml
apiVersion: dashboard.kubedb.com/v1alpha1
apiVersion: elasticsearch.kubedb.com/v1alpha1
kind: ElasticsearchDashboard
metadata:
name: es-cluster-dashboard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -285,6 +285,7 @@ All of them refer to [Quantity](https://v1-22.docs.kubernetes.io/docs/reference/
name: es
volumeExpansion:
node: 4Gi
mode: Online
```

- Expand volume for cluster topology:
Expand All @@ -303,6 +304,7 @@ All of them refer to [Quantity](https://v1-22.docs.kubernetes.io/docs/reference/
master: 2Gi
data: 3Gi
ingest: 4Gi
mode: Online
```

- Expand volume for only data nodes:
Expand All @@ -319,6 +321,7 @@ All of them refer to [Quantity](https://v1-22.docs.kubernetes.io/docs/reference/
name: es
volumeExpansion:
data: 5Gi
mode: Online
```

### spec.tls
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ persistentvolumeclaim/data-es-cluster-master-1 Bound pvc-53fd7683-96a6-4737
## Deploy ElasticsearchDashboard

```yaml
apiVersion: dashboard.kubedb.com/v1alpha1
apiVersion: elasticsearch.kubedb.com/v1alpha1
kind: ElasticsearchDashboard
metadata:
name: es-cluster-dashboard
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: dashboard.kubedb.com/v1alpha1
apiVersion: elasticsearch.kubedb.com/v1alpha1
kind: ElasticsearchDashboard
metadata:
name: es-cluster-dashboard
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ persistentvolumeclaim/data-os-cluster-master-1 Bound pvc-37783550-3c3a-4280
## Deploy ElasticsearchDashboard

```yaml
apiVersion: dashboard.kubedb.com/v1alpha1
apiVersion: elasticsearch.kubedb.com/v1alpha1
kind: ElasticsearchDashboard
metadata:
name: os-cluster-dashboard
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: dashboard.kubedb.com/v1alpha1
apiVersion: elasticsearch.kubedb.com/v1alpha1
kind: ElasticsearchDashboard
metadata:
name: os-cluster-dashboard
Expand Down
16 changes: 16 additions & 0 deletions docs/guides/ferretdb/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
---
title: FerretDB
menu:
docs_{{ .version }}:
identifier: mg-readme-ferretdb
name: FerretDB
parent: mg-ferretdb-guides
weight: 10
menu_name: docs_{{ .version }}
section_menu_id: guides
url: /docs/{{ .version }}/guides/ferretdb/
aliases:
- /docs/{{ .version }}/guides/ferretdb/README/
---

> New to KubeDB? Please start [here](/docs/README.md).
10 changes: 10 additions & 0 deletions docs/guides/ferretdb/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: FerretDB
menu:
docs_{{ .version }}:
identifier: fr-ferretdb-guides
name: FerretDB
parent: guides
weight: 10
menu_name: docs_{{ .version }}
---
10 changes: 10 additions & 0 deletions docs/guides/ferretdb/quickstart/_index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
---
title: FerretDB Quickstart
menu:
docs_{{ .version }}:
identifier: fr-quickstart-ferretdb
name: Quickstart
parent: fr-ferretdb-guides
weight: 15
menu_name: docs_{{ .version }}
---
Loading
Loading