X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=pm-rapp%2FREADME.md;h=5c951afcd8e3399af34041e8c989cb0024ff64d2;hb=f5220f5955d8599e5c247bf432fe65c83e8a65c1;hp=99a82609e2deb7e68cbc3cff73f761f614346d07;hpb=d806dbef4f43bb9c631c818e96c1a39e440c5e6c;p=nonrtric%2Fplt%2Franpm.git diff --git a/pm-rapp/README.md b/pm-rapp/README.md index 99a8260..5c951af 100644 --- a/pm-rapp/README.md +++ b/pm-rapp/README.md @@ -1,7 +1,6 @@ -## Basic rAPP for demo purpose - starts a subscription and prints out received data on the topic to stdout - +## Basic rAPP for demo purpose ### Manual build, tag and push to image repo @@ -11,6 +10,62 @@ Build for docker or local kubernetes\ Build for remote kubernetes - an externally accessible image repo (e.g. docker hub) is needed \ `./build.sh []` +## Function + +The rApp starts a job subscription and prints (option) the received data to standard out. The purpose with this app is to simulate a real app subscribing to data. + +The rapp can be configured to used plain text, plain text SSL or plain text SASL towards kafka. + ### Configuration +The container expects the following environment variables: + +- APPID : Should be a unique name (for example the name of the POD). + +- APPNS : Should be the name of namespace. + +- KAFKA_SERVER : Host and port of the kafka bootstrap server. + +- TOPIC : The kafka topic where data is delivered by the job. + +- ICS : Host and port to the information coordinator server. + +The remaining env vars are optional. + +- JWT_FILE : File path to mounted file where a valid token is stored. If used, the app expects the file to be regularly updated by a sidecar container. Only for SASL plain text towards kafka. + +- SSLPATH : Path to mounted cert and key for secure kafka communication. Only for secure plaintext interface towards kafka. + +- GZIP : If set (any value) the payload from kafka is expected to be in gzip format. + +- LOG_PAYLOAD : If set (any value) the received payload is printed to standard out. + +The following are optional and used only if the app fetches the token instead of a configured sidecar. Only for SASL plain text towards kafka. + +- CREDS_GRANT_TYPE : Grant type (keycloak) +- CREDS_CLIENT_SECRET : Client secret (keycloak) +- CREDS_CLIENT_ID : Client id (keycloak) +- AUTH_SERVICE_URL : Url to keycloak for requesting a token. + + + +The subscription json is expected on the path "/config/jobDefinition.json". +The rapp set topic and bootstrapserver from the above env vars before subscribing to the data. + + + +## License + +Copyright (C) 2023 Nordix Foundation. All rights reserved. +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. \ No newline at end of file