Marek Szwalkiewicz | a662568 | 2020-03-02 17:09:18 +0000 | [diff] [blame] | 1 | # Copyright (c) 2020 Bell Canada, Deutsche Telekom |
| 2 | # |
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 | # you may not use this file except in compliance with the License. |
| 5 | # You may obtain a copy of the License at |
| 6 | # |
| 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 lan`guage governing permissions and |
| 13 | # limitations under the License. |
| 14 | |
| 15 | ################################################################# |
| 16 | # Global configuration defaults. |
| 17 | ################################################################# |
| 18 | global: |
| 19 | # Change to an unused port prefix range to prevent port conflicts |
| 20 | # with other instances running within the same k8s cluster |
| 21 | nodePortPrefix: 302 |
| 22 | |
Marek Szwalkiewicz | a662568 | 2020-03-02 17:09:18 +0000 | [diff] [blame] | 23 | # image pull policy |
| 24 | pullPolicy: Always |
| 25 | |
| 26 | persistence: |
| 27 | mountPath: /dockerdata-nfs |
| 28 | |
| 29 | ################################################################# |
| 30 | # Application configuration defaults. |
| 31 | ################################################################# |
| 32 | # application image |
Dan Timoney | c8964e5 | 2022-03-30 07:51:50 -0400 | [diff] [blame] | 33 | image: onap/ccsdk-py-executor:1.3.0 |
Marek Szwalkiewicz | a662568 | 2020-03-02 17:09:18 +0000 | [diff] [blame] | 34 | pullPolicy: Always |
| 35 | |
| 36 | # default number of instances |
| 37 | replicaCount: 1 |
| 38 | |
| 39 | nodeSelector: {} |
| 40 | |
| 41 | affinity: {} |
| 42 | |
| 43 | # probe configuration parameters |
| 44 | liveness: |
| 45 | port: 50052 |
| 46 | initialDelaySeconds: 20 |
| 47 | periodSeconds: 20 |
| 48 | timeoutSeconds: 20 |
| 49 | # necessary to disable liveness probe when setting breakpoints |
| 50 | # in debugger so K8s doesn't restart unresponsive container |
| 51 | enabled: true |
| 52 | |
| 53 | readiness: |
| 54 | port: 50052 |
| 55 | initialDelaySeconds: 10 |
| 56 | periodSeconds: 10 |
| 57 | timeoutSeconds: 20 |
| 58 | |
| 59 | service: |
| 60 | type: ClusterIP |
| 61 | ports: |
| 62 | - port: 50052 |
Andreas Geissler | 4ee97a9 | 2022-04-29 13:01:14 +0200 | [diff] [blame^] | 63 | name: grpc-executor |
Marek Szwalkiewicz | a662568 | 2020-03-02 17:09:18 +0000 | [diff] [blame] | 64 | - port: 50053 |
Andreas Geissler | 4ee97a9 | 2022-04-29 13:01:14 +0200 | [diff] [blame^] | 65 | name: grpc-manager |
Marek Szwalkiewicz | a662568 | 2020-03-02 17:09:18 +0000 | [diff] [blame] | 66 | |
| 67 | secrets: |
| 68 | - uid: api-credentials |
| 69 | externalSecret: '{{ tpl (default "" .Values.config.authCredentialsExternalSecret) . }}' |
| 70 | type: basicAuth |
| 71 | login: '{{ .Values.config.apiUsername }}' |
| 72 | password: '{{ .Values.config.apiPassword }}' |
| 73 | passwordPolicy: required |
| 74 | |
| 75 | config: |
| 76 | # the api credentials below are used to authenticate communication with blueprint |
| 77 | # processor API. Py executor in this context is a client of the blueprint processor |
| 78 | apiUsername: ccsdkapps |
| 79 | apiPassword: ccsdkapps |
| 80 | env: |
| 81 | appPort: 50052 |
| 82 | authType: tls-auth |
| 83 | logFile: /dev/stdout |
| 84 | artifactManagerPort: 50053 |
| 85 | artifactManagerLogFile: /dev/stdout |
| 86 | |
| 87 | persistence: |
| 88 | enabled: true |
| 89 | mountSubPath: cds/blueprints/deploy |
| 90 | deployedBlueprint: /opt/app/onap/blueprints/deploy |
| 91 | |
| 92 | ingress: |
| 93 | enabled: false |
| 94 | |
| 95 | flavor: small |
| 96 | |
| 97 | resources: |
| 98 | small: |
| 99 | limits: |
| 100 | cpu: 2 |
| 101 | memory: 4Gi |
| 102 | requests: |
| 103 | cpu: 1 |
| 104 | memory: 1Gi |
| 105 | large: |
| 106 | limits: |
| 107 | cpu: 4 |
| 108 | memory: 8Gi |
| 109 | requests: |
| 110 | cpu: 2 |
| 111 | memory: 4Gi |
| 112 | unlimited: {} |
farida azmy | ffad032 | 2021-04-09 14:18:14 +0200 | [diff] [blame] | 113 | |
| 114 | #Pods Service Account |
| 115 | serviceAccount: |
| 116 | nameOverride: cds-py-executor |
| 117 | roles: |
| 118 | - read |