aravind.est | 0879dfc | 2023-02-22 09:05:50 +0000 | [diff] [blame] | 1 | # ============LICENSE_START======================================================= |
| 2 | # Copyright (C) 2023 Nordix Foundation. |
| 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 | # |
| 8 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 9 | # |
| 10 | # Unless required by applicable law or agreed to in writing, software |
| 11 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 12 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 13 | # See the License for the specific language governing permissions and |
| 14 | # limitations under the License. |
| 15 | # |
| 16 | # SPDX-License-Identifier: Apache-2.0 |
| 17 | # ============LICENSE_END========================================================= |
| 18 | |
| 19 | ################################################################# |
| 20 | # Global configuration defaults. |
| 21 | ################################################################# |
| 22 | global: |
| 23 | persistence: {} |
aravind.est | 0879dfc | 2023-02-22 09:05:50 +0000 | [diff] [blame] | 24 | #Strimzi Kafka properties |
aravind.est | 0879dfc | 2023-02-22 09:05:50 +0000 | [diff] [blame] | 25 | kafkaTopics: |
| 26 | acRuntimeTopic: |
| 27 | name: &acRuntimeTopic policy.clamp-runtime-acm |
| 28 | |
| 29 | ################################################################# |
| 30 | # Secrets metaconfig |
| 31 | ################################################################# |
| 32 | secrets: |
| 33 | - uid: restserver-secret |
| 34 | type: basicAuth |
| 35 | externalSecret: '{{ tpl (default "" .Values.restServer.credsExternalSecret) . }}' |
| 36 | login: '{{ .Values.restServer.user }}' |
| 37 | password: '{{ .Values.restServer.password }}' |
| 38 | passwordPolicy: required |
aravind.est | 0879dfc | 2023-02-22 09:05:50 +0000 | [diff] [blame] | 39 | |
| 40 | ################################################################# |
| 41 | # Application configuration defaults. |
| 42 | ################################################################# |
| 43 | # application image |
saul.gill | 82b27e6 | 2024-04-26 12:45:10 +0100 | [diff] [blame^] | 44 | image: onap/policy-clamp-ac-kserve-ppnt:7.1.2 |
aravind.est | 0879dfc | 2023-02-22 09:05:50 +0000 | [diff] [blame] | 45 | pullPolicy: Always |
| 46 | |
aravind.est | 0879dfc | 2023-02-22 09:05:50 +0000 | [diff] [blame] | 47 | componentName: &componentName policy-clamp-ac-kserve-ppnt |
| 48 | |
| 49 | # application configuration |
| 50 | restServer: |
| 51 | user: participantUser |
| 52 | password: zb!XztG34 |
| 53 | |
| 54 | # flag to enable debugging - application support required |
| 55 | debugEnabled: false |
| 56 | |
| 57 | # default number of instances |
| 58 | replicaCount: 1 |
| 59 | |
| 60 | nodeSelector: {} |
| 61 | |
| 62 | affinity: {} |
| 63 | ingress: |
| 64 | enabled: false |
| 65 | |
AndrewLamb | 7ef78ae | 2023-04-20 16:24:13 +0100 | [diff] [blame] | 66 | serviceMesh: |
| 67 | authorizationPolicy: |
| 68 | authorizedPrincipals: |
rameshiyer27 | bc8a6a4 | 2024-03-11 17:18:11 +0000 | [diff] [blame] | 69 | - serviceAccount: strimzi-kafka-read |
AndrewLamb | 7ef78ae | 2023-04-20 16:24:13 +0100 | [diff] [blame] | 70 | |
aravind.est | 0879dfc | 2023-02-22 09:05:50 +0000 | [diff] [blame] | 71 | # probe configuration parameters |
| 72 | liveness: |
Andreas Geissler | c50f089 | 2023-06-14 14:21:31 +0200 | [diff] [blame] | 73 | initialDelaySeconds: 60 |
aravind.est | 0879dfc | 2023-02-22 09:05:50 +0000 | [diff] [blame] | 74 | periodSeconds: 10 |
| 75 | # necessary to disable liveness probe when setting breakpoints |
| 76 | # in debugger so K8s doesn't restart unresponsive container |
| 77 | enabled: true |
| 78 | port: kserve-api |
| 79 | |
| 80 | readiness: |
Andreas Geissler | c50f089 | 2023-06-14 14:21:31 +0200 | [diff] [blame] | 81 | initialDelaySeconds: 60 |
aravind.est | 0879dfc | 2023-02-22 09:05:50 +0000 | [diff] [blame] | 82 | periodSeconds: 10 |
| 83 | port: kserve-api |
| 84 | |
| 85 | service: |
| 86 | type: ClusterIP |
| 87 | name: *componentName |
| 88 | ports: |
| 89 | - name: kserve-api |
| 90 | port: 8087 |
aravind.est | 0879dfc | 2023-02-22 09:05:50 +0000 | [diff] [blame] | 91 | |
| 92 | flavor: small |
| 93 | resources: |
| 94 | small: |
| 95 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 96 | cpu: "1" |
Andreas Geissler | 8cbb3d9 | 2024-03-12 16:44:56 +0100 | [diff] [blame] | 97 | memory: "700Mi" |
aravind.est | 0879dfc | 2023-02-22 09:05:50 +0000 | [diff] [blame] | 98 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 99 | cpu: "0.5" |
Andreas Geissler | 8cbb3d9 | 2024-03-12 16:44:56 +0100 | [diff] [blame] | 100 | memory: "700Mi" |
aravind.est | 0879dfc | 2023-02-22 09:05:50 +0000 | [diff] [blame] | 101 | large: |
| 102 | limits: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 103 | cpu: "2" |
| 104 | memory: "1.4Gi" |
aravind.est | 0879dfc | 2023-02-22 09:05:50 +0000 | [diff] [blame] | 105 | requests: |
Andreas Geissler | 4753743 | 2024-02-27 08:55:23 +0100 | [diff] [blame] | 106 | cpu: "1" |
| 107 | memory: "1.4Gi" |
aravind.est | 0879dfc | 2023-02-22 09:05:50 +0000 | [diff] [blame] | 108 | unlimited: {} |
| 109 | #Pods Service Account |
| 110 | serviceAccount: |
| 111 | nameOverride: *componentName |
| 112 | roles: |
| 113 | - create |
| 114 | |
| 115 | config: |
| 116 | # Any new property can be added in the env by setting in overrides in the format mentioned below |
| 117 | # All the added properties must be in "key: value" format instead of yaml. |
| 118 | # additional: |
| 119 | # spring.config.max-size: 200 |
| 120 | # spring.config.min-size: 10 |
| 121 | # Strimzi Kafka config |
| 122 | kafkaUser: |
| 123 | authenticationType: scram-sha-512 |
| 124 | acls: |
| 125 | - name: *componentName |
| 126 | type: group |
| 127 | operations: [Read] |
| 128 | - name: *acRuntimeTopic |
| 129 | type: topic |
| 130 | operations: [Read, Write] |