Skip to content

Commit

Permalink
Fix typos and errors
Browse files Browse the repository at this point in the history
Signed-off-by: neaj <[email protected]>
  • Loading branch information
Neaj-Morshad-101 committed Jun 19, 2023
1 parent 6205de5 commit f5a8ff0
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
2 changes: 1 addition & 1 deletion docs/guides/redis/clustering/redis-cluster.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ redis-cluster ClusterIP 10.96.115.92 <none> 6379/TCP 3m4s
redis-cluster-pods ClusterIP None <none> 6379/TCP 3m4s
```

KubeDB operator sets the `status.phase` to `Running` once the database is successfully created. Run the following command to see the modified `Redis` object:
KubeDB operator sets the `status.phase` to `Ready` once the database is successfully created. Run the following command to see the modified `Redis` object:

```bash
$ kubectl get rd -n demo redis-cluster -o yaml
Expand Down
6 changes: 3 additions & 3 deletions docs/guides/redis/concepts/autoscaler.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ section_menu_id: guides

Like any official Kubernetes resource, a `RedisAutoscaler` has `TypeMeta`, `ObjectMeta`, `Spec` and `Status` sections.

Here is a sample `RedisAutoscaler` CROs for autoscaling different components of database is given below:
Here is a sample `RedisAutoscaler` CRDs for autoscaling different components of database is given below:

**Sample `RedisAutoscaler` for standalone database:**

Expand Down Expand Up @@ -60,7 +60,7 @@ spec:
scalingThreshold: 20
```
Here is a sample `RedisSentinelAutoscaler` CROs for autoscaling different components of database is given below:
Here is a sample `RedisSentinelAutoscaler` CRDs for autoscaling different components of database is given below:

**Sample `RedisSentinelAutoscaler` for standalone database:**
```yaml
Expand Down Expand Up @@ -101,7 +101,7 @@ A `RedisAutoscaler` object has the following fields in the `spec` section.
- **spec.databaseRef.name :** specifies the name of the [Redis](/docs/guides/redis/concepts/redis.md) object.

### spec.opsRequestOptions
These are the options to pass in the internally created opsRequest CRO. `opsRequestOptions` has three fields. They have been described in details [here](/docs/guides/redis/concepts/redisopsrequest.md#specreadinesscriteria).
These are the options to pass in the internally created opsRequest CRD. `opsRequestOptions` has three fields. They have been described in details [here](/docs/guides/redis/concepts/redisopsrequest.md#specreadinesscriteria).

### spec.compute

Expand Down
2 changes: 1 addition & 1 deletion docs/guides/redis/concepts/catalog.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ On the other hand, `DenyList` contains all the rejected versions for the update

### spec.podSecurityPolicies.databasePolicyName

`spec.podSecurityPolicies.databasePolicyName` is a required field that specifies the name of the pod security policy required to get the database server pod(s) running. To use a user-defined policy, the name of the polict has to be set in `spec.podSecurityPolicies` and in the list of allowed policy names in KubeDB operator like below:
`spec.podSecurityPolicies.databasePolicyName` is a required field that specifies the name of the pod security policy required to get the database server pod(s) running. To use a user-defined policy, the name of the policy has to be set in `spec.podSecurityPolicies` and in the list of allowed policy names in KubeDB operator like below:

```bash
helm upgrade kubedb-operator appscode/kubedb --namespace kube-system \
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/redis/scaling/horizontal-scaling/sentinel.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ namespace/demo created
### Prepare Redis Sentinel Database

Now, we are going to deploy a `RedisSentinel` instance with version `6.2.7` and a `Redis` database with version `6.2.5`. Then, in the next section we are going to apply horizontal scaling on the sentinel and the database using `RedisOpsRequest` CRD
Now, we are going to deploy a `RedisSentinel` instance with version `6.2.7` and a `Redis` database with version `6.2.5`. Then, in the next section we are going to apply horizontal scaling on the sentinel and the database using `RedisSentinelOpsRequest` and `RedisOpsRequest` CRD.

### Deploy RedisSentinel :

Expand Down
8 changes: 4 additions & 4 deletions docs/guides/redis/sentinel/redis-sentinel.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Here,
- `spec.replicas` denotes the number of replica nodes
- `spec.storage` specifies the StorageClass of PVC dynamically allocated to store data for this database. This storage spec will be passed to the StatefulSet created by KubeDB operator to run database pods. So, each members will have a pod of this storage configuration. You can specify any StorageClass available in your cluster with appropriate resource requests.

KubeDB operator watches for `RedisSentinel` objects using Kubernetes API. When a `RedisSentinel` object is created, KubeDB operator will create a new StatefulSet and a Service with the matching Redis object name. KubeDB operator will also create a governing service for StatefulSets named `kubedb`, if one is not already present.
KubeDB operator watches for `RedisSentinel` objects using Kubernetes API. When a `RedisSentinel` object is created, KubeDB operator will create a new StatefulSet and a Service with the matching RedisSentinel object name. KubeDB operator will also create a governing service for StatefulSets named `kubedb`, if one is not already present.


Now we will deploy a Redis instance with giving the sentinelRef to the previously created RedisSentinel instance.
Expand Down Expand Up @@ -108,7 +108,7 @@ redis.kubedb.com/rd-demo created

Here,

- `spec.mode` specifies the mode for Redis. Here we have used `Redis` to tell the operator that we want to deploy Redis in cluster mode.
- `spec.mode` specifies the mode for Redis. Here we have used `Redis` to tell the operator that we want to deploy Redis in sentinel mode.
- `spec.replicas` denotes the number of replica nodes
- `spec.storage` specifies the StorageClass of PVC dynamically allocated to store data for this database. This storage spec will be passed to the StatefulSet created by KubeDB operator to run database pods. So, each members will have a pod of this storage configuration. You can specify any StorageClass available in your cluster with appropriate resource requests.

Expand Down Expand Up @@ -158,7 +158,7 @@ sen-demo ClusterIP 10.96.249.99 <none> 26379/TCP 14m
sen-demo-pods ClusterIP None <none> 26379/TCP 14m
```

KubeDB operator sets the `status.phase` to `Running` once the database is successfully created. `status.phase` section is similar for
KubeDB operator sets the `status.phase` to `Ready` once the database is successfully created. `status.phase` section is similar for
`Redis` object and `RedisSentinel` object. Run the following command to see the modified `RedisSentinel` object:

```bash
Expand Down Expand Up @@ -412,7 +412,7 @@ $ kubectl exec -it rd-demo-0 -n demo -c redis -- bash
/data #
# now ensure that you are connected to the 1st pod
/data # redis-cli -c -h
/data # redis-cli -c -h 10.244.0.140
10.244.0.140:6379>
# set 'world' as value for the key 'hello'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ Here, we are going to deploy a `Redis` and `RedisSentinel` instance using a sup

### Prepare RedisSentinel

Now, we are going to deploy a `RedisSentinel` version `6.2.5`.
Now, we are going to deploy a `RedisSentinel` version `6.2.8`.
```yaml
apiVersion: kubedb.com/v1alpha2
kind: RedisSentinel
Expand All @@ -53,7 +53,7 @@ metadata:
namespace: demo
spec:
version: 6.2.8
replicas: 5
replicas: 3
storageType: Durable
storage:
resources:
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/redis/update-version/sentinel.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ NAME TYPE STATUS AGE
update-sen-version UpdateVersion Successful 3m30s
```

We can see from the above output that the `RedisOpsRequest` has succeeded.
We can see from the above output that the `RedisSentinelOpsRequest` has succeeded.

Now, we are going to verify whether the `RedisSentinel` and the related `StatefulSets` their `Pods` have the new version image. Let's check,

Expand Down

0 comments on commit f5a8ff0

Please sign in to comment.