File tree Expand file tree Collapse file tree 3 files changed +83
-0
lines changed
test/integration/features Expand file tree Collapse file tree 3 files changed +83
-0
lines changed Original file line number Diff line number Diff line change 1+ # Deploying Strimzi on OpenShift
2+
3+ This addon provides an easy way to install an Apache Kafka cluster, using [ Strimzi] ( http://strimzi.io/ ) on [ Minishift] ( https://github.com/minishift/minishift ) .
4+
5+ Prerequisites:
6+
7+ * [ Installed and running] ( https://docs.okd.io/latest/minishift/getting-started/installing.html ) Minishift
8+ * [ Installed] ( https://docs.okd.io/latest/minishift/command-ref/minishift_oc-env.html ) OpenShift CLI
9+
10+ ## Start Minishift
11+ The deployment works with Minishift default resources - 2 CPUs and 4 GB RAM.
12+ ```
13+ ```
14+
15+ ## Add-on installation
16+ Clone this repository onto your local machine and then install the add-on via:
17+ ```
18+ $ minishift addons install <path_to_directory_containing_this_readme>
19+ ```
20+
21+ ## Strimzi start
22+ Deploy the Apache Kafka cluster, as a ` cluster-admin ` user:
23+
24+ ```
25+ oc login -u system:admin
26+ ...
27+ minishift addon apply strimzi -a STRIMZI_VERSION=0.8.2 -a PROJECT=myproject
28+ ```
29+
30+ After a while all parts should be up and running, you can monitor the progress:
31+
32+ ```
33+ oc get pods -w
34+ ```
35+
36+ ## Supported parameters
37+ * ` STRIMZI_VERSION ` - the verson of Strimzi to be used (only released versions are supported)
38+ * ` PROJECT ` - the name of the project to which Strimzi is deployed
39+
40+ ## Strimzi Documentation
41+ To learn more about Strimzi, read the [ Strimzi documentation] ( http://strimzi.io/ ) .
Original file line number Diff line number Diff line change 1+ # Name: strimzi
2+ # Description: Deploys an Apache Kafka Cluster
3+ # Required-Vars: STRIMZI_VERSION
4+ # Var-Defaults: STRIMZI_VERSION=#{STRIMZI_VERSION},PROJECT=myproject
5+ # OpenShift-Version: >=3.10.0
6+
7+ # Pull images
8+ echo Pulling images...
9+ docker pull docker.io/strimzi/topic-operator:#{STRIMZI_VERSION}
10+ docker pull docker.io/strimzi/entity-operator-stunnel:#{STRIMZI_VERSION}
11+ docker pull docker.io/strimzi/user-operator:#{STRIMZI_VERSION}
12+ docker pull docker.io/strimzi/cluster-operator:#{STRIMZI_VERSION}
13+ docker pull docker.io/strimzi/kafka:#{STRIMZI_VERSION}
14+ docker pull docker.io/strimzi/kafka-stunnel:#{STRIMZI_VERSION}
15+ docker pull docker.io/strimzi/kafka-init:#{STRIMZI_VERSION}
16+ docker pull docker.io/strimzi/zookeeper-stunnel:#{STRIMZI_VERSION}
17+ docker pull docker.io/strimzi/zookeeper:#{STRIMZI_VERSION}
18+
19+
20+ echo Applying Strimzi Install files (e.g. Roles, Bindings, CRDs)
21+ oc apply -f https://github.com/strimzi/strimzi-kafka-operator/releases/download/#{STRIMZI_VERSION}/strimzi-cluster-operator-#{STRIMZI_VERSION}.yaml -n #{PROJECT}
22+
23+ echo Creating persistent Strimzi broker
24+ oc apply -f https://raw.githubusercontent.com/strimzi/strimzi-kafka-operator/#{STRIMZI_VERSION}/examples/kafka/kafka-persistent.yaml -n #{PROJECT}
25+
26+ echo Completed, wait for Strimzi start!
Original file line number Diff line number Diff line change 1+ @strimzi
2+ Feature : Feature for strimzi
3+
4+ @minishift-only
5+ Scenario : User installs strimzi add-on
6+ When executing "minishift addons install ../../add-ons/strimzi" succeeds
7+ Then stdout should contain "Addon 'strimzi' installed"
8+
9+ Scenario : User can uninstall strimzi add-on
10+ When executing "minishift addons uninstall strimzi" succeeds
11+ Then stdout should contain "Add-on 'strimzi' uninstalled"
12+ And stdout of command "minishift addons list" does not contain "strimzi"
13+
14+ Scenario : Deleting Minishift
15+ When executing "minishift delete --force" succeeds
16+ Then Minishift should have state "Does Not Exist"
You can’t perform that action at this time.
0 commit comments