diff options
author | aravind.est <aravindhan.a@est.tech> | 2023-03-08 15:57:50 +0000 |
---|---|---|
committer | aravind.est <aravindhan.a@est.tech> | 2023-03-08 15:57:50 +0000 |
commit | 3306b2f6ca5b1d6c0f7377213cf0e71394b397b8 (patch) | |
tree | 97cd5a0cca3d6d028560bda27138a3b9661c9b30 | |
parent | 2c1aaa13555400d6526c04875a70bfa8b8ffbd18 (diff) |
Add kserve participant in CSIT docker compose
Kserve participant added in docker-compose configuration of CSIT.
Issue-ID: POLICY-4574
Signed-off-by: aravind.est <aravindhan.a@est.tech>
Change-Id: I2b25eac7cf9414fc8a4d4bff80d0a2a61ddd6890
-rwxr-xr-x | compose/config/clamp/KserveParticipantParameters.yaml | 62 | ||||
-rw-r--r-- | compose/docker-compose.yml | 17 |
2 files changed, 79 insertions, 0 deletions
diff --git a/compose/config/clamp/KserveParticipantParameters.yaml b/compose/config/clamp/KserveParticipantParameters.yaml new file mode 100755 index 00000000..d83a48f0 --- /dev/null +++ b/compose/config/clamp/KserveParticipantParameters.yaml @@ -0,0 +1,62 @@ +spring:
+ cloud:
+ kubernetes:
+ enabled: false
+ discovery:
+ enabled: false
+ security:
+ user:
+ name: participantUser
+ password: zb!XztG34
+ autoconfigure:
+ exclude:
+ - org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration
+ - org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
+ - org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
+ - org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration
+ - io.kubernetes.client.spring.extended.manifests.config.KubernetesManifestsAutoConfiguration
+ - io.kubernetes.client.spring.extended.network.config.KubernetesLoadBalancerAutoConfiguration
+
+security:
+ enable-csrf: false
+
+participant:
+ intermediaryParameters:
+ reportingTimeIntervalMs: 120000
+ description: Participant Description
+ participantId: 101c62b3-8918-41b9-a747-d21eb79c6c04
+ clampAutomationCompositionTopics:
+ topicSources:
+ - topic: POLICY-ACRUNTIME-PARTICIPANT
+ servers:
+ - ${topicServer:message-router}
+ topicCommInfrastructure: dmaap
+ fetchTimeout: 15000
+ topicSinks:
+ - topic: POLICY-ACRUNTIME-PARTICIPANT
+ servers:
+ - ${topicServer:message-router}
+ topicCommInfrastructure: dmaap
+ participantSupportedElementTypes:
+ -
+ typeName: org.onap.policy.clamp.acm.KserveAutomationCompositionElement
+ typeVersion: 1.0.1
+
+customresourcedefinition:
+ group: serving.kserve.io
+ version: v1beta1
+ plural: inferenceservices
+ grace-period: 10
+
+management:
+ endpoints:
+ web:
+ base-path: /
+ exposure:
+ include: health, metrics, prometheus
+server:
+ port: 6969
+ servlet:
+ context-path: /onap/policy/clamp/acm/kserveparticipant
+ ssl:
+ enabled: false
diff --git a/compose/docker-compose.yml b/compose/docker-compose.yml index 712b6522..dee7663d 100644 --- a/compose/docker-compose.yml +++ b/compose/docker-compose.yml @@ -325,6 +325,23 @@ services: '-c', './a1pms-participant.sh', 'message-router', '3904' ] + policy-clamp-ac-kserve-ppnt: + image: ${CONTAINER_LOCATION}onap/policy-clamp-ac-kserve-ppnt:${POLICY_CLAMP_VERSION} + container_name: policy-clamp-ac-kserve-ppnt + depends_on: + - simulator + hostname: policy-clamp-ac-kserve-ppnt + ports: + - 30297:6969 + volumes: + - ./config/clamp/KserveParticipantParameters.yaml:/opt/app/policy/clamp/etc/KserveParticipantParameters.yaml:ro + - ./config/clamp/logback.xml:/opt/app/policy/clamp/etc/logback.xml:ro + - ./wait_for_port.sh:/opt/app/policy/bin/wait_for_port.sh:ro + entrypoint: /opt/app/policy/bin/wait_for_port.sh + command: [ + '-c', './kserve-participant.sh', + 'message-router', '3904' + ] prometheus: image: prom/prometheus:v2.32.1 container_name: prometheus |