Skip to content

Commit

Permalink
change api v1alpha2 to v1 for old dbs
Browse files Browse the repository at this point in the history
Signed-off-by: SK Ali Arman <[email protected]>
  • Loading branch information
sheikh-arman committed Jul 9, 2024
1 parent ff8919c commit 30afd36
Show file tree
Hide file tree
Showing 340 changed files with 489 additions and 489 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Here, we are going to deploy an `Elasticsearch` in combined cluster mode using a
In this section, we are going to deploy an Elasticsearch combined cluster with ElasticsearchVersion `xpack-8.11.1`. Then, in the next section, we will set up autoscaling for this database using `ElasticsearchAutoscaler` CRD. Below is the YAML of the `Elasticsearch` CR that we are going to create,

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-combined
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-combined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ Here, we are going to deploy an `Elasticsearch` topology cluster using a support
In this section, we are going to deploy an Elasticsearch topology with ElasticsearchVersion `opensearch-2.8.0`. Then, in the next section we will set up autoscaling for this database using `ElasticsearchAutoscaler` CRD. Below is the YAML of the `Elasticsearch` CR that we are going to create,

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-topology
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-topology
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Now, we are going to deploy a `Elasticsearch` combined cluster using a supported
In this section, we are going to deploy an Elasticsearch combined cluster with version `xpack-8.11.1`. Then, in the next section we will set up autoscaling for this database using `ElasticsearchAutoscaler` CRD. Below is the YAML of the `Elasticsearch` CR that we are going to create,

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-combined
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-combined
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Now, we are going to deploy a `Elasticsearch` topology cluster using a supported
In this section, we are going to deploy a Elasticsearch topology cluster with version `xpack-8.11.1`. Then, in the next section we will set up autoscaling for this database using `ElasticsearchAutoscaler` CRD. Below is the YAML of the `Elasticsearch` CR that we are going to create,

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-topology
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-topology
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-demo-2
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-demo-3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-demo
Expand Down
6 changes: 3 additions & 3 deletions docs/guides/elasticsearch/backup/auto-backup/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ secret/gcs-secret created
Now, we are going to create an Elasticsearch CRO in `demo` namespace. Below is the YAML of the Elasticsearch object that we are going to create,

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-demo
Expand Down Expand Up @@ -325,7 +325,7 @@ secret/gcs-secret created
Now, we are going to create an Elasticsearch CRO in `demo-2` namespace. Below is the YAML of the Elasticsearch object that we are going to create,

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-demo-2
Expand Down Expand Up @@ -504,7 +504,7 @@ secret/gcs-secret created
Now, we are going to create an Elasticsearch CRO in `demo-3` namespace. Below is the YAML of the Elasticsearch object that we are going to create,

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-demo-3
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: sample-elasticsearch
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: init-sample
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: sample-es
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/elasticsearch/backup/kubedb/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ In this section, we are going to deploy an Elasticsearch database using KubeDB.
At first, let's deploy a sample Elasticsearch database. Below is the YAML of a sample Elasticsearch crd that we are going to create for this tutorial:

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: sample-es
Expand Down Expand Up @@ -828,7 +828,7 @@ Now, we are going to deploy an Elasticsearch into `restored` namespace. We are g
Here, is the YAML of the Elasticsearch object that we are going to create,

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: init-sample
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/elasticsearch/cli/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ To get YAML of an object, use `--output=yaml` flag.

```yaml
$ kubectl get elasticsearch elasticsearch-demo --output=yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
creationTimestamp: 2018-10-08T14:22:19Z
Expand All @@ -64,7 +64,7 @@ metadata:
name: elasticsearch-demo
namespace: demo
resourceVersion: "51660"
selfLink: /apis/kubedb.com/v1alpha2/namespaces/default/elasticsearches/elasticsearch-demo
selfLink: /apis/kubedb.com/v1/namespaces/default/elasticsearches/elasticsearch-demo
uid: 90a54c9e-cb05-11e8-8d51-9eed48c5e947
spec:
authSecret:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ demo Active 9s
Here, we are going to create a standalone (ie. `replicas: 1`) Elasticsearch cluster. We will use the Elasticsearch image provided by the Opendistro (`opensearch-2.8.0`) for this demo. To learn more about Elasticsearch CR, visit [here](/docs/guides/elasticsearch/concepts/elasticsearch/index.md).

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-standalone
Expand Down Expand Up @@ -158,7 +158,7 @@ $ curl -XGET -k -u 'admin:V,YY1.qXxoAch9)B' "https://localhost:9200/_cluster/hea
Here, we are going to create a multi-node (say `replicas: 3`) Elasticsearch cluster. We will use the Elasticsearch image provided by the Opendistro (`opensearch-2.8.0`) for this demo. To learn more about Elasticsearch CR, visit [here](/docs/guides/elasticsearch/concepts/elasticsearch/index.md).

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-multinode
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-multinode
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-standalone
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Here, we use `linode-block-storage` as StorageClass in this demo.
We are going to create a Elasticsearch Hot-Warm-Cold cluster in topology mode. Our cluster will be consist of 2 master nodes, 2 ingest nodes, 1 data content node, 3 data hot nodes, 2 data warm node, and 2 data cold nodes. Here, we are using Elasticsearch version (`xpack-8.11.1`) of ElasticStack distribution for this demo. To learn more about the Elasticsearch CR, visit [here](/docs/guides/elasticsearch/concepts/elasticsearch/index.md).

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-cluster
Expand Down Expand Up @@ -158,7 +158,7 @@ Name: es-cluster
Namespace: demo
Labels: <none>
Annotations: <none>
API Version: kubedb.com/v1alpha2
API Version: kubedb.com/v1
Kind: Elasticsearch
Metadata:
Creation Timestamp: 2022-03-14T06:33:20Z
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-cluster
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Here, we have `standard` StorageClass in our cluster from [Local Path Provisione
We are going to create a Elasticsearch Simple Dedicated Cluster in topology mode. Our cluster will be consist of 2 master nodes, 3 data nodes, 2 ingest nodes. Here, we are using Elasticsearch version ( `xpack-8.11.1` ) of SearchGuard distribution for this demo. To learn more about the Elasticsearch CR, visit [here](/docs/guides/elasticsearch/concepts/elasticsearch/index.md).

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-cluster
Expand Down Expand Up @@ -128,7 +128,7 @@ Name: es-cluster
Namespace: demo
Labels: <none>
Annotations: <none>
API Version: kubedb.com/v1alpha2
API Version: kubedb.com/v1
Kind: Elasticsearch
Metadata:
Creation Timestamp: 2022-04-07T09:48:51Z
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-cluster
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/elasticsearch/concepts/appbinding/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ kind: AppBinding
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"kubedb.com/v1alpha2","kind":"Elasticsearch","metadata":{"annotations":{},"name":"es-quickstart","namespace":"demo"},"spec":{"enableSSL":true,"replicas":3,"storage":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"1Gi"}},"storageClassName":"standard"},"storageType":"Durable","deletionPolicy":"Delete","version":"xpack-8.2.3"}}
{"apiVersion":"kubedb.com/v1","kind":"Elasticsearch","metadata":{"annotations":{},"name":"es-quickstart","namespace":"demo"},"spec":{"enableSSL":true,"replicas":3,"storage":{"accessModes":["ReadWriteOnce"],"resources":{"requests":{"storage":"1Gi"}},"storageClassName":"standard"},"storageType":"Durable","deletionPolicy":"Delete","version":"xpack-8.2.3"}}
creationTimestamp: "2022-12-29T05:03:33Z"
generation: 1
labels:
Expand All @@ -45,7 +45,7 @@ metadata:
name: es-quickstart
namespace: demo
ownerReferences:
- apiVersion: kubedb.com/v1alpha2
- apiVersion: kubedb.com/v1
blockOwnerDeletion: true
controller: true
kind: Elasticsearch
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/elasticsearch/concepts/elasticsearch/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ section_menu_id: guides
As with all other Kubernetes objects, an Elasticsearch needs `apiVersion`, `kind`, and `metadata` fields. It also needs a `.spec` section. Below is an example Elasticsearch object.

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: myes
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ Now that the config secret is created, it needs to be mention in the [Elasticsea


```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-multinode
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-multinode
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ secret/es-custom-config created
Now Deploy the Elasticsearch Cluster with the custom `jvm.options` file:

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-test
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-test
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/elasticsearch/configuration/overview/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ The `OpenDistro` security plugin has the following configuration files:
The custom configuration files are passed via a Kubernetes secret. The **file names are the keys** of the Secret with the **file-contents as the values**. The secret name needs to be mentioned in `spec.configSecret.name` of the [Elasticsearch](/docs/guides/elasticsearch/concepts/elasticsearch/index.md) object.

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-custom-config
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ secret/es-custom-config created
Now that the config secret is created, it needs to be mention in the [Elasticsearch](/docs/guides/elasticsearch/concepts/elasticsearch/index.md) object's yaml:

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-topology
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-topology
Expand Down
4 changes: 2 additions & 2 deletions docs/guides/elasticsearch/custom-rbac/using-custom-rbac.md
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ elasticsearch.kubedb.com/quick-elasticsearch created
Below is the YAML for the Elasticsearch crd we just created.

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: quick-elasticsearch
Expand Down Expand Up @@ -187,7 +187,7 @@ elasticsearch.kubedb.com/quick-elasticsearch created
Below is the YAML for the Elasticsearch crd we just created.

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: minute-elasticsearch
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ Here, we have `standard` StorageClass in our cluster from [Local Path Provisione
We are going to create a Elasticsearch Simple Dedicated Cluster in topology mode. Our cluster will be consist of 2 master nodes, 3 data nodes, 2 ingest nodes. Here, we are using Elasticsearch version (`xpack-8.2.3`) of Elasticsearch distribution for this demo. To learn more about the Elasticsearch CR, visit [here](/docs/guides/elasticsearch/concepts/elasticsearch/index.md).

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-cluster
Expand Down Expand Up @@ -128,7 +128,7 @@ Name: es-cluster
Namespace: demo
Labels: <none>
Annotations: <none>
API Version: kubedb.com/v1alpha2
API Version: kubedb.com/v1
Kind: Elasticsearch
Metadata:
Creation Timestamp: 2022-06-08T11:03:43Z
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: es-cluster
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ Here, we have `standard` StorageClass in our cluster from [Local Path Provisione
We are going to create a OpenSearch Cluster in topology mode. Our cluster will be consist of 2 master nodes, 3 data nodes, 2 ingest nodes. Here, we are using Elasticsearch version ( `opensearch-2.8.0` ) of OpenSearch distribution for this demo. To learn more about the Elasticsearch CR, visit [here](/docs/guides/elasticsearch/concepts/elasticsearch/index.md).

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: os-cluster
Expand Down Expand Up @@ -130,7 +130,7 @@ Name: os-cluster
Namespace: demo
Labels: <none>
Annotations: <none>
API Version: kubedb.com/v1alpha2
API Version: kubedb.com/v1
Kind: Elasticsearch
Metadata:
Creation Timestamp: 2022-06-08T06:01:54Z
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Elasticsearch
metadata:
name: os-cluster
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/elasticsearch/monitoring/overview.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ In order to enable monitoring for a database, you have to configure `spec.monito
A sample YAML for Redis crd with `spec.monitor` section configured to enable monitoring with [Prometheus operator](https://github.com/prometheus-operator/prometheus-operator) is shown below.

```yaml
apiVersion: kubedb.com/v1alpha2
apiVersion: kubedb.com/v1
kind: Redis
metadata:
name: sample-redis
Expand Down
Loading

0 comments on commit 30afd36

Please sign in to comment.