From: ToineSiebelink Date: Mon, 23 Feb 2026 17:25:34 +0000 (+0000) Subject: LCM Events V2 (demo prep) X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F70%2F143370%2F2;p=cps.git LCM Events V2 (demo prep) - Improve K8/K6 Readme's - Add new var for setting event version to values.yaml Issue-ID: CPS-2975 Change-Id: Ieb5fb9fbea24967f8a06c76d6b8277b41bb19137 Signed-off-by: ToineSiebelink --- diff --git a/cps-charts/README.md b/cps-charts/README.md index b9f685559c..afcc1fb6df 100644 --- a/cps-charts/README.md +++ b/cps-charts/README.md @@ -22,21 +22,27 @@ # CPS and NCMP Helm Chart This Helm chart deploys the **CPS** and **NCMP** ecosystem along with PostgreSQL, Kafka, Zookeeper, and dual DMI Stub services. --- -## Prerequisites -- Kubernetes cluster (tested on K8s 1.24+) -- Helm 3.x -- Access to the necessary Docker image registry (e.g., `nexus3.onap.org`) +#### Prerequisites for Windows +1. Docker Desktop +2. Enable Kubernetes in Docker Desktop (Settings, Kubernetes, kubeadm). Known issue: it may hang on "starting kubernetes" for a few minutes. Resolution: click "Reset Cluster" then it starts. +3. Helm 3.x (see [installing helm on windows](https://helm.sh/docs/intro/install/). Recommended approach: install Helm with winget) + + +#### Prerequisites for Linux +1. Kubernetes cluster (tested on K8s 1.24+) + - k3s from Rancher (see) [installing k3s on linux](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-cluster-setup/k3s-for-rancher)) +2. Helm 3.x (see [installing helm on linux](https://helm.sh/docs/intro/install/)) + --- ## Installation To install the chart into the **default namespace**: ```bash -helm install cps ./ +helm install cps ./cps-charts ``` -Replace with the path to this Helm chart. To install with policy executor checking enabled ```bash -helm install cps ./ --set cps.env.POLICY_SERVICE_ENABLED=true +helm install cps ./cps-charts --set cps.env.POLICY_SERVICE_ENABLED=true ``` --- @@ -48,7 +54,9 @@ kubectl get pods --- # Port forwarding -Required for local access to cluster services +Required for local access to cluster services (keep running in separate terminal) + +CPS/NCMP service: ```bash kubectl port-forward service/cps-ncmp-service 8080:8080 ``` @@ -76,4 +84,4 @@ This Helm chart deploys the following components: - zookeeper: Zookeeper coordination service for Kafka - dmi-stub: Stub service for NCMP device interactions - policy-executor-stub: Stub service for Policy Executor interactions ---- \ No newline at end of file +--- diff --git a/cps-charts/values.yaml b/cps-charts/values.yaml index 78e3c0523d..8c0e02c124 100644 --- a/cps-charts/values.yaml +++ b/cps-charts/values.yaml @@ -109,7 +109,7 @@ cps: JAVA_TOOL_OPTIONS: "-XX:InitialRAMPercentage=70.0 -XX:MaxRAMPercentage=70.0" HAZELCAST_MODE_KUBERNETES_ENABLED: "true" IGNORE_R20250722_MODEL: "true" - + APP_LCM_EVENTS_EVENT-SCHEMA-VERSION: "v1" kafka: enabled: true image: diff --git a/k6-tests/README.md b/k6-tests/README.md index 2c9e1e733f..0740fd582c 100644 --- a/k6-tests/README.md +++ b/k6-tests/README.md @@ -25,18 +25,11 @@ The script assumes k6 and the relevant docker-compose have been installed. ```shell ./k6-main.sh [kpi|endurance] [dockerHosts] ``` - ### Running the k6 test suites on a Kubernetes environment Only kubernetes cluster deployment type supported: k8sHosts -#### Prerequisites for Windows -1. Docker Desktop -2. Enable Kubernetes in Docker Desktop (Settings, Kubernetes). Known issue: it may hang on "starting kubernetes" for a few minutes. Resolution: click "Reset Cluster" then it starts. -3. Install Helm, see [installing helm on windows](https://helm.sh/docs/intro/install/). Recommended approach: install Helm with winget. - -#### Prerequisites for Linux -1. k3s from Rancher [installing k3s on linux](https://ranchermanager.docs.rancher.com/how-to-guides/new-user-guides/kubernetes-cluster-setup/k3s-for-rancher) -2. Install Helm, see [installing helm on linux](https://helm.sh/docs/intro/install/) +#### Prerequisites +See [Prerequisites for Windows](../cps-charts/README.md#prerequisites-for-windows) or [Prerequisites for Linux](../cps-charts/README.md#prerequisites-for-linux) in the CPS Charts README. Run the main script. By default, kpi profile is supported, and it assumes the kubernetes environment with Helm is already available.