af9d46a807782b3dbf31cd5de628bd1e054a55be
[oom.git] / kubernetes / policy / components / policy-clamp-ac-kserve-ppnt / resources / config / KserveParticipantParameters.yaml
1 #  ============LICENSE_START=======================================================
2 #  Copyright (C) 2023 Nordix Foundation. All rights reserved.
3 #  ================================================================================
4 #  Licensed under the Apache License, Version 2.0 (the "License");
5 #  you may not use this file except in compliance with the License.
6 #  You may obtain a copy of the License at
7 #       http://www.apache.org/licenses/LICENSE-2.0
8
9 #  Unless required by applicable law or agreed to in writing, software
10 #  distributed under the License is distributed on an "AS IS" BASIS,
11 #  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 #  See the License for the specific language governing permissions and
13 #  limitations under the License.
14
15 #  SPDX-License-Identifier: Apache-2.0
16 #  ============LICENSE_END=========================================================
17
18 spring:
19   cloud:
20     kubernetes:
21       enabled: false
22     discovery:
23       enabled: false
24   security:
25     user:
26       name: ${RESTSERVER_USER}
27       password: ${RESTSERVER_PASSWORD}
28   autoconfigure:
29     exclude:
30       - org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration
31       - org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration
32       - org.springframework.boot.autoconfigure.jdbc.DataSourceTransactionManagerAutoConfiguration
33       - org.springframework.boot.autoconfigure.data.web.SpringDataWebAutoConfiguration
34       - io.kubernetes.client.spring.extended.manifests.config.KubernetesManifestsAutoConfiguration
35       - io.kubernetes.client.spring.extended.network.config.KubernetesLoadBalancerAutoConfiguration
36
37 security:
38   enable-csrf: false
39
40 participant:
41   intermediaryParameters:
42     reportingTimeIntervalMs: 120000
43     description: Participant Description
44     participantId: 101c62b3-8918-41b9-a747-d21eb79c6c04
45     clampAutomationCompositionTopics:
46       topicSources:
47         -
48           useHttps: false
49           fetchTimeout: 15000
50           topic: {{ .Values.global.kafkaTopics.acRuntimeTopic.name }}
51           {{ if .Values.global.useStrimziKafka }}
52           topicCommInfrastructure: kafka
53           servers:
54             - {{ include "common.release" . }}-strimzi-kafka-bootstrap:9092
55           additionalProps:
56             group.id: {{ (first .Values.kafkaUser.acls).name }}
57             allow.auto.create.topics: false
58             security.protocol: SASL_PLAINTEXT
59             sasl.mechanism: {{ .Values.kafkaUser.authenticationType | upper }}
60             sasl.jaas.config: ${SASL_JAAS_CONFIG}
61           {{ else }}
62           topicCommInfrastructure: dmaap
63           servers:
64             - ${topicServer:message-router}
65           {{ end }}
66       topicSinks:
67         -
68           useHttps: false
69           fetchTimeout: 15000
70           topic: {{ .Values.global.kafkaTopics.acRuntimeTopic.name }}
71           {{ if .Values.global.useStrimziKafka }}
72           topicCommInfrastructure: kafka
73           servers:
74             - {{ include "common.release" . }}-strimzi-kafka-bootstrap:9092
75           additionalProps:
76             client.id: {{ (first .Values.kafkaUser.acls).name }}-client-id
77             security.protocol: SASL_PLAINTEXT
78             sasl.mechanism: {{ .Values.kafkaUser.authenticationType | upper }}
79             sasl.jaas.config: ${SASL_JAAS_CONFIG}
80           {{ else }}
81           topicCommInfrastructure: dmaap
82           servers:
83             - ${topicServer:message-router}
84           {{ end }}
85     participantSupportedElementTypes:
86       -
87         typeName: org.onap.policy.clamp.acm.KserveAutomationCompositionElement
88         typeVersion: 1.0.1
89       -
90         typeName: org.onap.policy.clamp.acm.AutomationCompositionElement
91         typeVersion: 1.0.0
92
93 customresourcedefinition:
94   group: serving.kserve.io
95   version: v1beta1
96   plural: inferenceservices
97   grace-period: 10
98
99 management:
100   endpoints:
101     web:
102       base-path: /
103       exposure:
104         include: health, metrics, prometheus
105 server:
106   port: 8087
107   servlet:
108     context-path: /onap/policy/clamp/acm/kserveparticipant
109   ssl:
110     enabled: false
111
112