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

volume expansion yamls update #618

Closed
wants to merge 1 commit 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
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
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
1 change: 1 addition & 0 deletions docs/guides/mongodb/autoscaler/storage/replicaset.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ spec:
trigger: "On"
usageThreshold: 60
scalingThreshold: 50
expansionMode: Online
```

Here,
Expand Down
1 change: 1 addition & 0 deletions docs/guides/mongodb/autoscaler/storage/sharding.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ spec:
trigger: "On"
usageThreshold: 60
scalingThreshold: 50
expansionMode: Online
```

Here,
Expand Down
1 change: 1 addition & 0 deletions docs/guides/mongodb/autoscaler/storage/standalone.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ spec:
trigger: "On"
usageThreshold: 60
scalingThreshold: 50
expansionMode: Online
```

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

**Sample `MongoDBAutoscaler` for replicaset database:**
Expand Down Expand Up @@ -96,6 +97,7 @@ spec:
trigger: "On"
usageThreshold: 60
scalingThreshold: 50
expansionMode: Online
```

**Sample `MongoDBAutoscaler` for sharded database:**
Expand Down Expand Up @@ -157,10 +159,12 @@ spec:
trigger: "On"
usageThreshold: 60
scalingThreshold: 50
expansionMode: Online
configServer:
trigger: "On"
usageThreshold: 60
scalingThreshold: 50
expansionMode: Online
```

Here, we are going to describe the various sections of a `MongoDBAutoscaler` crd.
Expand Down
3 changes: 3 additions & 0 deletions docs/guides/mongodb/concepts/opsrequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -406,6 +406,7 @@ spec:
name: mg-replicaset
volumeExpansion:
replicaSet: 2Gi
mode: Online
status:
conditions:
- lastTransitionTime: "2020-08-25T18:22:38Z"
Expand All @@ -431,6 +432,7 @@ spec:
volumeExpansion:
shard: 2Gi
configServer: 2Gi
mode: Online
status:
conditions:
- lastTransitionTime: "2020-08-25T18:22:38Z"
Expand All @@ -455,6 +457,7 @@ spec:
name: mg-standalone
volumeExpansion:
standalone: 2Gi
mode: Online
status:
conditions:
- lastTransitionTime: "2020-08-25T18:22:38Z"
Expand Down
1 change: 1 addition & 0 deletions docs/guides/mongodb/volume-expansion/replicaset.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ spec:
name: mg-replicaset
volumeExpansion:
replicaSet: 2Gi
mode: Online
```

Here,
Expand Down
1 change: 1 addition & 0 deletions docs/guides/mongodb/volume-expansion/sharding.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,7 @@ spec:
volumeExpansion:
shard: 2Gi
configServer: 2Gi
mode: Online
```

Here,
Expand Down
1 change: 1 addition & 0 deletions docs/guides/mongodb/volume-expansion/standalone.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ spec:
name: mg-standalone
volumeExpansion:
standalone: 2Gi
mode: Online
```

Here,
Expand Down
1 change: 1 addition & 0 deletions docs/guides/redis/autoscaler/storage/redis.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ spec:
trigger: "On"
usageThreshold: 60
scalingThreshold: 50
expansionMode: Online
```

> If you want to autoscale Redis in Cluster mode, the field in `spec.storage` should be `cluster` and for sentinel it should be `sentinel`. The subfields are same inside `spec.storage.standalone`, `spec.storage.cluster` and `spec.storage.sentinel`
Expand Down
1 change: 1 addition & 0 deletions docs/guides/redis/concepts/autoscaler.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ spec:
trigger: "On"
usageThreshold: 25
scalingThreshold: 20
expansionMode: Online
```

Here is a sample `RedisSentinelAutoscaler` CRDs for autoscaling different components of database is given below:
Expand Down
Loading