@@ -5,7 +5,7 @@ The following document describes the development of a _cloud native_ [Cassandra]
...
@@ -5,7 +5,7 @@ The following document describes the development of a _cloud native_ [Cassandra]
This document also attempts to describe the core components of Kubernetes, _Pods_, _Services_ and _Replication Controllers_.
This document also attempts to describe the core components of Kubernetes, _Pods_, _Services_ and _Replication Controllers_.
### Prerequisites
### Prerequisites
This example assumes that you have a Kubernetes cluster installed and running, and that you have installed the ```kubectl```and ```kubecfg``` command line tools somewhere in your path. Please see the [getting started](https://github.com/GoogleCloudPlatform/kubernetes/tree/master/docs/getting-started-guides) for installation instructions for your platform.
This example assumes that you have a Kubernetes cluster installed and running, and that you have installed the ```kubectl```command line tool somewhere in your path. Please see the [getting started](https://github.com/GoogleCloudPlatform/kubernetes/tree/master/docs/getting-started-guides) for installation instructions for your platform.
### A note for the impatient
### A note for the impatient
This is a somewhat long tutorial. If you want to jump straight to the "do it now" commands, please see the [tl; dr](#tl-dr) at the end.
This is a somewhat long tutorial. If you want to jump straight to the "do it now" commands, please see the [tl; dr](#tl-dr) at the end.
...
@@ -151,7 +151,7 @@ Now this is actually not that interesting, since we haven't actually done anythi
...
@@ -151,7 +151,7 @@ Now this is actually not that interesting, since we haven't actually done anythi
Let's resize our cluster to 2:
Let's resize our cluster to 2:
```sh
```sh
$ kubecfg resize cassandra 2
$ kubectl resize rc cassandra --replicas=2
```
```
Now if you list the pods in your cluster, you should see two cassandra pods:
Now if you list the pods in your cluster, you should see two cassandra pods:
@@ -7,7 +7,7 @@ Any topology changes are communicated and handled by Hazelcast nodes themselves.
...
@@ -7,7 +7,7 @@ Any topology changes are communicated and handled by Hazelcast nodes themselves.
This document also attempts to describe the core components of Kubernetes, _Pods_, _Services_ and _Replication Controllers_.
This document also attempts to describe the core components of Kubernetes, _Pods_, _Services_ and _Replication Controllers_.
### Prerequisites
### Prerequisites
This example assumes that you have a Kubernetes cluster installed and running, and that you have installed the ```kubectl```and ```kubecfg``` command line tools somewhere in your path. Please see the [getting started](https://github.com/GoogleCloudPlatform/kubernetes/tree/master/docs/getting-started-guides) for installation instructions for your platform.
This example assumes that you have a Kubernetes cluster installed and running, and that you have installed the ```kubectl```command line tool somewhere in your path. Please see the [getting started](https://github.com/GoogleCloudPlatform/kubernetes/tree/master/docs/getting-started-guides) for installation instructions for your platform.
### A note for the impatient
### A note for the impatient
This is a somewhat long tutorial. If you want to jump straight to the "do it now" commands, please see the [tl; dr](#tl-dr) at the end.
This is a somewhat long tutorial. If you want to jump straight to the "do it now" commands, please see the [tl; dr](#tl-dr) at the end.
...
@@ -142,7 +142,7 @@ Now this is actually not that interesting, since we haven't actually done anythi
...
@@ -142,7 +142,7 @@ Now this is actually not that interesting, since we haven't actually done anythi
Let's resize our cluster to 2:
Let's resize our cluster to 2:
```sh
```sh
$ kubecfg resize hazelcast 2
$ kubectl resize rc hazelcast --replicas=2
```
```
Now if you list the pods in your cluster, you should see two hazelcast pods:
Now if you list the pods in your cluster, you should see two hazelcast pods: