vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 1 | # Copyright © 2017 Amdocs, Bell Canada |
efiacor | 7009bc0 | 2023-02-17 07:47:55 +0000 | [diff] [blame] | 2 | # Modifications Copyright © 2023 Nordix Foundation |
vaibhav_16dec | e04b2fe | 2018-03-22 09:07:12 +0000 | [diff] [blame] | 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 | |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 16 | ################################################################# |
| 17 | # Global configuration defaults. |
| 18 | ################################################################# |
| 19 | global: |
efiacor | 7009bc0 | 2023-02-17 07:47:55 +0000 | [diff] [blame] | 20 | persistence: {} |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 21 | ################################################################# |
| 22 | # Application configuration defaults. |
| 23 | ################################################################# |
| 24 | # application image |
Bogumil Zebek | 0d121a2 | 2021-02-24 10:01:44 +0100 | [diff] [blame] | 25 | image: onap/cli:6.0.1 |
efiacor | 7009bc0 | 2023-02-17 07:47:55 +0000 | [diff] [blame] | 26 | pullPolicy: IfNotPresent |
| 27 | |
| 28 | # flag to enable debugging - application support required |
| 29 | debugEnabled: false |
| 30 | |
| 31 | nodeSelector: {} |
| 32 | affinity: {} |
| 33 | |
| 34 | # Resource Limit flavor -By Default using small |
rajeshkalai | 91524d0 | 2018-09-18 03:39:18 -0400 | [diff] [blame] | 35 | flavor: small |
efiacor | 7009bc0 | 2023-02-17 07:47:55 +0000 | [diff] [blame] | 36 | # default number of instances |
| 37 | replicaCount: 1 |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 38 | |
| 39 | # application configuration |
| 40 | config: |
| 41 | climode: daemon |
| 42 | |
efiacor | 7009bc0 | 2023-02-17 07:47:55 +0000 | [diff] [blame] | 43 | containerPort: &svc_port 8080 |
| 44 | service: |
| 45 | type: ClusterIP |
| 46 | name: cli |
| 47 | ports: |
| 48 | - name: http |
| 49 | port: *svc_port |
| 50 | targetPort: *svc_port |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 51 | |
efiacor | 7009bc0 | 2023-02-17 07:47:55 +0000 | [diff] [blame] | 52 | ingress: |
| 53 | enabled: true |
| 54 | service: |
| 55 | - baseaddr: "cli-api" |
| 56 | path: "/" |
| 57 | name: "cps" |
| 58 | port: *svc_port |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 59 | |
| 60 | # probe configuration parameters |
| 61 | liveness: |
| 62 | initialDelaySeconds: 10 |
| 63 | periodSeconds: 10 |
| 64 | # necessary to disable liveness probe when setting breakpoints |
| 65 | # in debugger so K8s doesn't restart unresponsive container |
| 66 | enabled: true |
efiacor | 7009bc0 | 2023-02-17 07:47:55 +0000 | [diff] [blame] | 67 | port: *svc_port |
| 68 | path: / |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 69 | |
| 70 | readiness: |
| 71 | initialDelaySeconds: 10 |
| 72 | periodSeconds: 10 |
efiacor | 7009bc0 | 2023-02-17 07:47:55 +0000 | [diff] [blame] | 73 | port: *svc_port |
| 74 | path: / |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 75 | |
Priyanka | ec75797 | 2018-03-28 11:23:59 +0000 | [diff] [blame] | 76 | |
Mandeep Khinda | 60d36d4 | 2018-09-24 15:15:48 +0000 | [diff] [blame] | 77 | # Configure resource requests and limits |
| 78 | # ref: http://kubernetes.io/docs/user-guide/compute-resources/ |
rajeshkalai | 9eb454b | 2018-09-18 16:43:26 -0400 | [diff] [blame] | 79 | resources: |
| 80 | small: |
| 81 | limits: |
| 82 | cpu: 1 |
| 83 | memory: 2Gi |
| 84 | requests: |
Mandeep Khinda | 3c13425 | 2018-09-19 23:56:37 +0000 | [diff] [blame] | 85 | cpu: 10m |
| 86 | memory: 500Mi |
rajeshkalai | 9eb454b | 2018-09-18 16:43:26 -0400 | [diff] [blame] | 87 | large: |
| 88 | limits: |
| 89 | cpu: 4 |
| 90 | memory: 8Gi |
| 91 | requests: |
Mandeep Khinda | 3c13425 | 2018-09-19 23:56:37 +0000 | [diff] [blame] | 92 | cpu: 2 |
| 93 | memory: 4Gi |
Kanagaraj Manickam | fed2112 | 2020-04-04 09:44:19 +0530 | [diff] [blame] | 94 | unlimited: {} |
farida azmy | 11e021d | 2021-10-02 15:18:20 +0200 | [diff] [blame] | 95 | |
| 96 | #Pods Service Account |
| 97 | serviceAccount: |
| 98 | nameOverride: cli |
| 99 | roles: |
| 100 | - read |