domhanak commented on code in PR #519:
URL:
https://github.com/apache/incubator-kie-kogito-docs/pull/519#discussion_r1414982556
##########
serverlessworkflow/modules/ROOT/pages/data-index/data-index-usecase-multi.adoc:
##########
@@ -0,0 +1,198 @@
+= Deploying Data Index and multiple {product_name} application on Minikube
+:compat-mode!:
+// Metadata:
+:description: Deploying Multiple {product_name} pushing to single Data Index
on Minikube
+:keywords: kogito, workflow, quarkus, serverless, kubectl, minikube, operator,
dataindex
+:table-caption: Data Set
+// envs for common content
+:kubectl_prereq: command-line tool is installed. Otherwise, Minikube handles
it.
+//Common constants
+:data_index_ref: Data Index
+
+
+This document describes how to deploy a multiple {product_name} workflow
applications and the {data_index_ref} service using a local Kubernetes cluster,
such as link:{minikube_url}[Minikube], using the
link:{kogito_serverless_operator_url}[{operator_name}].
+
+For more information about Minikube and related system requirements, see
link:{minikube_url}/docs/start/[Getting started with Minikube] documentation.
+
+This use case is intended to represent an installation with:
+
+* A singleton Data Index Service with PostgreSQL persistence
+* The `greeting` workflow (no persistence), that is configured to register
events to the Data Index Service.
+* The `helloworld` workflow (no persistence), that is configured to register
events to the Data Index Service.
+* Both workflows are configured to register the process events on the
{data_index_ref} Service.
+
+
+include::common/_prerequisites.adoc[]
+
+You can check the Minikube installation by entering the following commands in
a command terminal:
+
+.Verify Minikube version
+[source,shell]
+----
+minikube version
+----
+
+.Verify `kubectl` CLI version
+[source,shell]
+----
+kubectl version
+----
+
+[NOTE]
+====
+If `kubectl` is not installed, then Minikube handles it when you execute the
following command:
+
+.`kubectl` is available using Minikube
+[source,shell]
+----
+alias kubectl="minikube kubectl --"
+----
+====
+
+.Procedure
+. Open a terminal and run the following commands
+. Create the namespace:
++
+--
+[source,shell]
+----
+kubectl create namespace usecase2
+----
+--
+
+. Deploy the {data_index_ref} Service and postgresql database:
++
+--
+include::common/_dataindex_deployment_operator.adoc[]
+
+Perform the deployments executing
+[source,shell]
+----
+kubectl kustomize infra/dataindex | kubectl apply -f - -n usecase2
+----
+
+----
+configmap/dataindex-properties-hg9ff8bff5 created
+secret/postgres-secrets-22tkgc2dt7 created
+service/data-index-service-postgresql created
+service/postgres created
+persistentvolumeclaim/postgres-pvc created
+deployment.apps/data-index-service-postgresql created
+deployment.apps/postgres created
+----
+
+Give some time for the data index to start, you can check that it's running by
executing.
+
+[source,shell]
+----
+kubectl get pod -n usecase2
+----
+
+----
+NAME READY STATUS RESTARTS
AGE
+data-index-service-postgresql-5d76dc4468-lb259 1/1 Running 0
2m11s
+postgres-7f78499688-lc8n6 1/1 Running 0
2m11s
+----
+--
+. Deploy the workflow:
++
+--
+
+
+
+.Use case kustomization.yaml resources that would deploy the both workflows
inside usecases/usecase2 folder:
Review Comment:
@nmirasch this procedure is missing steps, as a user I did not see any
mention of me creating
1. workflows (greeting, hello- world) - were not create by the user in the
guide
2. service_discovery - was not created by the user in the guide
3. platforms/dataindex - platform was not created by user in the guide
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]