Skip to content
Merged
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
1 change: 0 additions & 1 deletion src/current/_includes/latest_operator_version.md

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ To shut down the CockroachDB cluster:

<section class="filter-content" markdown="1" data-scope="operator">

{% capture latest_operator_version %}{% include_cached latest_operator_version.md %}{% endcapture %}


1. Delete the previously created custom resource:

Expand All @@ -15,7 +15,7 @@ To shut down the CockroachDB cluster:

{% include_cached copy-clipboard.html %}
~~~ shell
$ kubectl delete -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/operator.yaml
$ kubectl delete -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/operator.yaml
~~~

This will delete the StatefulSet but will not delete the persistent volumes that were attached to the pods.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@ The Operator is currently supported for GKE only.

### Install the Operator

{% capture latest_operator_version %}{% include_cached latest_operator_version.md %}{% endcapture %}


1. Apply the [CustomResourceDefinition (CRD)](https://kubernetes.io/docs/concepts/extend-kubernetes/api-extension/custom-resources/#customresourcedefinitions) for the Operator:

{% include copy-clipboard.html %}
~~~ shell
$ kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/crds.yaml
$ kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/crds.yaml
~~~

~~~
Expand All @@ -21,7 +21,7 @@ The Operator is currently supported for GKE only.

{% include copy-clipboard.html %}
~~~ shell
$ kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/operator.yaml
$ kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/operator.yaml
~~~

~~~
Expand Down Expand Up @@ -51,7 +51,7 @@ On a production cluster, you will need to modify the StatefulSet configuration w

{% include copy-clipboard.html %}
~~~ shell
$ curl -O https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/examples/example.yaml
$ curl -O https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/examples/example.yaml
~~~

{% include copy-clipboard.html %}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
To shut down the CockroachDB cluster:

<section class="filter-content" markdown="1" data-scope="operator">
{% capture latest_operator_version %}{% include_cached latest_operator_version.md %}{% endcapture %}


1. Delete the previously created custom resource:

Expand All @@ -14,7 +14,7 @@ To shut down the CockroachDB cluster:

{% include_cached copy-clipboard.html %}
~~~ shell
kubectl delete -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/operator.yaml
kubectl delete -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/operator.yaml
~~~

This will delete the CockroachDB cluster being run by the Operator. It intentionally does **not** delete:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
### Install the Operator

{% capture latest_operator_version %}{% include_cached latest_operator_version.md %}{% endcapture %}

{% capture apply_default_operator_manifest_command %}

{% include_cached copy-clipboard.html %}
~~~ shell
kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/operator.yaml
kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/operator.yaml
~~~
~~~
clusterrole.rbac.authorization.k8s.io/cockroach-database-role created
Expand All @@ -23,7 +23,7 @@

{% include_cached copy-clipboard.html %}
~~~ shell
curl -O https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/operator.yaml
curl -O https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/operator.yaml
~~~
{% endcapture %}
{% capture apply_local_operator_manifest_command %}
Expand All @@ -38,7 +38,7 @@

{% include_cached copy-clipboard.html %}
~~~ shell
$ kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/crds.yaml
$ kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/crds.yaml
~~~

~~~
Expand Down Expand Up @@ -76,7 +76,7 @@ After a cluster managed by the Kubernetes operator is initialized, its Kubernete

{% include_cached copy-clipboard.html %}
~~~ shell
$ curl -O https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/examples/example.yaml
$ curl -O https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/examples/example.yaml
~~~

By default, this custom resource specifies CPU and memory resources that are appropriate for the virtual machines used in this deployment example. On a production cluster, you should substitute values that are appropriate for your machines and workload. For details on configuring your deployment, see [Configure the Cluster](configure-cockroachdb-kubernetes.html).
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<section class="filter-content" markdown="1" data-scope="operator">

{% capture latest_operator_version %}{% include_cached latest_operator_version.md %}{% endcapture %}


1. To use the CockroachDB SQL client, first launch a secure pod running the `cockroach` binary.

{% include_cached copy-clipboard.html %}
~~~ shell
$ kubectl create \
-f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/examples/client-secure-operator.yaml
-f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/examples/client-secure-operator.yaml
~~~

1. Get a shell into the pod and start the CockroachDB [built-in SQL client](cockroach-sql.html):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
To shut down the CockroachDB cluster:

<section class="filter-content" markdown="1" data-scope="operator">
{% capture latest_operator_version %}{% include_cached latest_operator_version.md %}{% endcapture %}


1. Delete the previously created custom resource:

Expand All @@ -14,7 +14,7 @@ To shut down the CockroachDB cluster:

{% include_cached copy-clipboard.html %}
~~~ shell
kubectl delete -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/operator.yaml
kubectl delete -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/operator.yaml
~~~

This will delete the CockroachDB cluster being run by the Operator. It intentionally does **not** delete:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
### Install the Operator

{% capture latest_operator_version %}{% include_cached latest_operator_version.md %}{% endcapture %}

{% capture apply_default_operator_manifest_command %}

{% include_cached copy-clipboard.html %}
~~~ shell
kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/operator.yaml
kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/operator.yaml
~~~
~~~
clusterrole.rbac.authorization.k8s.io/cockroach-database-role created
Expand All @@ -23,7 +23,7 @@

{% include_cached copy-clipboard.html %}
~~~ shell
curl -O https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/operator.yaml
curl -O https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/operator.yaml
~~~
{% endcapture %}
{% capture apply_local_operator_manifest_command %}
Expand All @@ -38,7 +38,7 @@

{% include_cached copy-clipboard.html %}
~~~ shell
$ kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/crds.yaml
$ kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/crds.yaml
~~~

~~~
Expand Down Expand Up @@ -76,7 +76,7 @@ After a cluster managed by the Kubernetes operator is initialized, its Kubernete

{% include_cached copy-clipboard.html %}
~~~ shell
$ curl -O https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/examples/example.yaml
$ curl -O https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/examples/example.yaml
~~~

By default, this custom resource specifies CPU and memory resources that are appropriate for the virtual machines used in this deployment example. On a production cluster, you should substitute values that are appropriate for your machines and workload. For details on configuring your deployment, see [Configure the Cluster](configure-cockroachdb-kubernetes.html).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ To use the CockroachDB SQL client, first launch a secure pod running the `cockro

<section class="filter-content" markdown="1" data-scope="operator">

{% capture latest_operator_version %}{% include_cached latest_operator_version.md %}{% endcapture %}


{% include_cached copy-clipboard.html %}
~~~ shell
$ kubectl create \
-f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/examples/client-secure-operator.yaml
-f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/examples/client-secure-operator.yaml
~~~

1. Get a shell into the pod and start the CockroachDB [built-in SQL client]({% link {{ page.version.version }}/cockroach-sql.md %}):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
To shut down the CockroachDB cluster:

<section class="filter-content" markdown="1" data-scope="operator">
{% capture latest_operator_version %}{% include_cached latest_operator_version.md %}{% endcapture %}


1. Delete the previously created custom resource:

Expand All @@ -14,7 +14,7 @@ To shut down the CockroachDB cluster:

{% include_cached copy-clipboard.html %}
~~~ shell
kubectl delete -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/operator.yaml
kubectl delete -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/operator.yaml
~~~

This will delete the CockroachDB cluster being run by the Operator. It intentionally does **not** delete:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
### Install the Operator

{% capture latest_operator_version %}{% include_cached latest_operator_version.md %}{% endcapture %}

{% capture apply_default_operator_manifest_command %}

{% include_cached copy-clipboard.html %}
~~~ shell
kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/operator.yaml
kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/operator.yaml
~~~
~~~
clusterrole.rbac.authorization.k8s.io/cockroach-database-role created
Expand All @@ -23,7 +23,7 @@

{% include_cached copy-clipboard.html %}
~~~ shell
curl -O https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/operator.yaml
curl -O https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/operator.yaml
~~~
{% endcapture %}
{% capture apply_local_operator_manifest_command %}
Expand All @@ -38,7 +38,7 @@

{% include_cached copy-clipboard.html %}
~~~ shell
$ kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/crds.yaml
$ kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/crds.yaml
~~~

~~~
Expand Down Expand Up @@ -76,7 +76,7 @@ After a cluster managed by the Kubernetes operator is initialized, its Kubernete

{% include_cached copy-clipboard.html %}
~~~ shell
$ curl -O https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/examples/example.yaml
$ curl -O https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/examples/example.yaml
~~~

By default, this custom resource specifies CPU and memory resources that are appropriate for the virtual machines used in this deployment example. On a production cluster, you should substitute values that are appropriate for your machines and workload. For details on configuring your deployment, see [Configure the Cluster](configure-cockroachdb-kubernetes.html).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ To use the CockroachDB SQL client, first launch a secure pod running the `cockro

<section class="filter-content" markdown="1" data-scope="operator">

{% capture latest_operator_version %}{% include_cached latest_operator_version.md %}{% endcapture %}


{% include_cached copy-clipboard.html %}
~~~ shell
$ kubectl create \
-f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/examples/client-secure-operator.yaml
-f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/examples/client-secure-operator.yaml
~~~

1. Get a shell into the pod and start the CockroachDB [built-in SQL client]({% link {{ page.version.version }}/cockroach-sql.md %}):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
To shut down the CockroachDB cluster:

<section class="filter-content" markdown="1" data-scope="operator">
{% capture latest_operator_version %}{% include_cached latest_operator_version.md %}{% endcapture %}


1. Delete the previously created custom resource:

Expand All @@ -14,7 +14,7 @@ To shut down the CockroachDB cluster:

{% include_cached copy-clipboard.html %}
~~~ shell
kubectl delete -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/operator.yaml
kubectl delete -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/operator.yaml
~~~

This will delete the CockroachDB cluster being run by the Operator. It intentionally does **not** delete:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
### Install the Operator

{% capture latest_operator_version %}{% include_cached latest_operator_version.md %}{% endcapture %}

{% capture apply_default_operator_manifest_command %}

{% include_cached copy-clipboard.html %}
~~~ shell
kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/operator.yaml
kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/operator.yaml
~~~
~~~
clusterrole.rbac.authorization.k8s.io/cockroach-database-role created
Expand All @@ -23,7 +23,7 @@

{% include_cached copy-clipboard.html %}
~~~ shell
curl -O https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/operator.yaml
curl -O https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/operator.yaml
~~~
{% endcapture %}
{% capture apply_local_operator_manifest_command %}
Expand All @@ -38,7 +38,7 @@

{% include_cached copy-clipboard.html %}
~~~ shell
$ kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/crds.yaml
$ kubectl apply -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/crds.yaml
~~~

~~~
Expand Down Expand Up @@ -76,7 +76,7 @@ After a cluster managed by the Kubernetes operator is initialized, its Kubernete

{% include_cached copy-clipboard.html %}
~~~ shell
$ curl -O https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/examples/example.yaml
$ curl -O https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/examples/example.yaml
~~~

By default, this custom resource specifies CPU and memory resources that are appropriate for the virtual machines used in this deployment example. On a production cluster, you should substitute values that are appropriate for your machines and workload. For details on configuring your deployment, see [Configure the Cluster](configure-cockroachdb-kubernetes.html).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ To use the CockroachDB SQL client, first launch a secure pod running the `cockro

<section class="filter-content" markdown="1" data-scope="operator">

{% capture latest_operator_version %}{% include_cached latest_operator_version.md %}{% endcapture %}


{% include_cached copy-clipboard.html %}
~~~ shell
$ kubectl create \
-f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/examples/client-secure-operator.yaml
-f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/examples/client-secure-operator.yaml
~~~

1. Get a shell into the pod and start the CockroachDB [built-in SQL client]({% link {{ page.version.version }}/cockroach-sql.md %}):
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
To shut down the CockroachDB cluster:

<section class="filter-content" markdown="1" data-scope="operator">
{% capture latest_operator_version %}{% include_cached latest_operator_version.md %}{% endcapture %}


1. Delete the previously created custom resource:

Expand All @@ -14,7 +14,7 @@ To shut down the CockroachDB cluster:

{% include_cached copy-clipboard.html %}
~~~ shell
kubectl delete -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v{{ latest_operator_version }}/install/operator.yaml
kubectl delete -f https://raw.githubusercontent.com/cockroachdb/cockroach-operator/v2.18.3/install/operator.yaml
~~~

This will delete the CockroachDB cluster being run by the Operator. It intentionally does **not** delete:
Expand Down
Loading
Loading