You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ma...@apache.org on 2023/07/05 12:07:30 UTC
[camel-karavan] 02/02: Fix #815
This is an automated email from the ASF dual-hosted git repository.
marat pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-karavan.git
commit d1b3a1e739d4da0ee390a7cf147b732d389dc992
Author: Marat Gubaidullin <ma...@gmail.com>
AuthorDate: Wed Jul 5 08:07:21 2023 -0400
Fix #815
---
.../src/main/resources/application.properties | 2 +-
karavan-cli/INFINISPAN.md | 78 ++++++++++++++--------
2 files changed, 53 insertions(+), 27 deletions(-)
diff --git a/karavan-app/src/main/resources/application.properties b/karavan-app/src/main/resources/application.properties
index d6791b3b..f4c984f0 100644
--- a/karavan-app/src/main/resources/application.properties
+++ b/karavan-app/src/main/resources/application.properties
@@ -14,7 +14,7 @@ karavan.git-branch=main
karavan.git-pull-interval=disabled
# Infinispan Server address
-quarkus.infinispan-client.hosts=infinispan.karavan:11222
+#quarkus.infinispan-client.hosts=infinispan.karavan:11222
quarkus.infinispan-client.username=admin
quarkus.infinispan-client.password=karavan
diff --git a/karavan-cli/INFINISPAN.md b/karavan-cli/INFINISPAN.md
index d5a637ba..4f8c7fb8 100644
--- a/karavan-cli/INFINISPAN.md
+++ b/karavan-cli/INFINISPAN.md
@@ -1,31 +1,57 @@
-## Install Karavan with CLI
+## Install Infinispan
+
+More info: https://infinispan.org/docs/helm-chart/main/helm-chart.html
### Requirements
1. minikube v1.30+ installed with `--driver=hyperkit`
+2. `helm` client
### Installation
-1. Start minikube
- ```
- minikube start --driver=hyperkit
- ```
-2. Enable registry addon
- ```
- minikube addons enable registry
- ```
-3. Start dashboard (optional)
- ```
- minikube dashboard
- ```
-4. Package karavan-cli
- ```
- mvn clean package
- ```
-5. Install Karavan
- ```
- java -jar target/karavan-cli-VERSION.jar install --git-repository=$GIT_REPOSITORY --git-password=$GIT_TOKEN --git-username=$GIT_USERNAME --node-port=30777
- ```
-5. Get karavan service URL
- ```
- minikube service karavan --url --namespace karavan
- ```
- Use karavan URL to connect to the application
+1. Add the OpenShift Helm Charts repository
+ ```
+ $ helm repo add openshift-helm-charts https://charts.openshift.io/
+ ```
+2. Create a secrets, ex `infinispan-secrets.yaml`:
+```
+apiVersion: v1
+kind: Secret
+metadata:
+ name: karavan-infinispan
+type: Opaque
+stringData:
+ username: monitor
+ password: password
+ identities-batch: |-
+ user create admin -p karavan -g admin
+ user create monitor -p password --users-file metrics-users.properties --groups-file metrics-groups.properties
+```
+4. Apply secret
+ ```
+ kubectl apply -f infinispan-secrets.yaml
+ ```
+5. Create a values file that configures your Infinispan cluster, ex `infinispan-values.yaml`:
+ ```
+ images:
+ server: quay.io/infinispan/server:latest
+ initContainer: registry.access.redhat.com/ubi8-micro
+ deploy:
+ security:
+ authentication: true
+ secretName: karavan-infinispan
+ replicas: 1
+ container:
+ storage:
+ ephemeral: true
+ expose:
+ type: NodePort
+ nodePort: 32666
+ ```
+5. Install the Infinispan chart and specify your values file
+ ```
+ kubectl config set-context --current --namespace=karavan
+ helm install infinispan openshift-helm-charts/infinispan-infinispan --values infinispan-values.yaml
+ ```
+6. Configure hosts for `karavan-app` in `application.properties`:
+ ```
+ quarkus.infinispan-client.hosts=infinispan.karavan:11222
+ ```