You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/getting_started.adoc
+30-10Lines changed: 30 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -4,28 +4,32 @@ One of the best ways of getting started with a new platform is to try it out. An
4
4
5
5
== About this guide
6
6
7
-
Firstly, let’s cover whether this *Getting Started* guide is right for you. This is intended as a learning tool to discover more about Stackable, its deployment and architecture.
7
+
Firstly, let's cover whether this *Getting Started* guide is right for you. This is intended as a learning tool to discover more about Stackable, its deployment and architecture.
8
8
9
9
* If you want to build a production cluster then this is not for you. This tutorial is to familiarize you with the Stackable architecture and is not a guide for building robust clusters.
10
10
* This is intended for use in a private network or lab; it doesn't enable many security features such as authentication or encryption and should not be directly connected to the Internet. Be careful if you're deploying in the cloud as your instances may default to using public IPs.
11
11
12
12
== Overview
13
+
13
14
Stackable is based on Kubernetes and uses this as the control plane to manage clusters. In this guide we will build a simple cluster with 3 services; Apache ZooKeeper, Apache Kafka and Apache NiFi.
14
15
15
16
== Installing Kubernetes and kubectl
16
-
Stackable’s control plane is built around Kubernetes. Follow the xref:kubernetes.adoc#local-installation[instructions] on how to set up a local Kubernetes instance if you do not have access to a cluster and install kubectl.
17
+
18
+
Stackable's control plane is built around Kubernetes. Follow the xref:kubernetes.adoc#local-installation[instructions] on how to set up a local Kubernetes instance if you do not have access to a cluster and install kubectl.
17
19
18
20
If you already have kubectl installed, and have access to a Kubernetes cluster, you can skip this step.
19
21
20
22
== Installing Stackable
23
+
21
24
=== Install stackablectl
22
25
23
26
Install the Stackable command line utility xref:management:stackablectl:index.adoc[stackablectl] by following the installation steps for your platform on the xref:management:stackablectl:installation.adoc[installation] page.
24
27
25
28
=== Installing Stackable Operators
29
+
26
30
The Stackable operators are components that translate the service definitions deployed via Kubernetes into deploy services on the worker nodes. These can be installed on any node that has access to the Kubernetes control plane. In this example we will install them on the controller node.
27
31
28
-
Stackable operators can be installed using stackablectl. Run the following commands to install ZooKeeper, Kafka and NiFi from the Stackable 23.7 release.
32
+
Stackable operators can be installed using `stackablectl`. Run the following commands to install ZooKeeper, Kafka and NiFi from the Stackable 23.7 release.
At this point you’ve successfully deployed Kubernetes and the Stackable operators we need and are ready to deploy services to the cluster. To do this we provide service descriptions to Kubernetes for each of the services we wish to deploy.
83
+
84
+
At this point you've successfully deployed Kubernetes and the Stackable operators we need and are ready to deploy services to the cluster. To do this we provide service descriptions to Kubernetes for each of the services we wish to deploy.
72
85
73
86
=== Apache ZooKeeper
87
+
74
88
We will deploy an Apache ZooKeeper instance to our cluster.
75
89
76
90
[source,bash]
@@ -105,6 +119,7 @@ EOF
105
119
----
106
120
107
121
=== Apache Kafka
122
+
108
123
We will deploy an Apache Kafka broker that depends on the ZooKeeper service we just deployed. The zookeeperReference property below points to the namespace and name we gave to the ZooKeeper service deployed previously.
Since this is the first time that each of these services has been deployed to these nodes, it will take some time to download the software from the Stackable repository and deploy the services. Once all the pods are in the running state your cluster is ready to use.
204
220
205
221
== Testing your cluster
222
+
206
223
If all has gone well then you will have successfully deployed a Stackable cluster and used it to start three services that should now be ready for you.
207
224
208
225
=== Apache ZooKeeper
226
+
209
227
We can test ZooKeeper by running the ZooKeeper CLI shell. The easiest way to do this is to run the CLI shell on the pod that is running ZooKeeper.
210
228
211
229
[source,bash]
@@ -221,6 +239,7 @@ The shell should connect automatically to the ZooKeeper server running on the po
221
239
----
222
240
223
241
=== Apache Kafka
242
+
224
243
To test Kafka we'll create a topic, and verify that it was created.
225
244
First create the topic with the following command:
0 commit comments