9dbc5b7ff380db27d4325d5a32c3c2cf1e6c16cb
[oom.git] / kubernetes / cds / charts / cds-py-executor / values.yaml
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
23   # image repositories
24   repository: nexus3.onap.org:10001
25
26   # readiness check
27   readinessRepository: oomk8s
28   readinessImage: readiness-check:2.0.0
29
30   # image pull policy
31   pullPolicy: Always
32
33   persistence:
34     mountPath: /dockerdata-nfs
35
36 #################################################################
37 # Application configuration defaults.
38 #################################################################
39 # application image
40 repository: nexus3.onap.org:10001
41 image: onap/ccsdk-py-executor:0.7.5
42 pullPolicy: Always
43
44 # default number of instances
45 replicaCount: 1
46
47 nodeSelector: {}
48
49 affinity: {}
50
51 # probe configuration parameters
52 liveness:
53   port: 50052
54   initialDelaySeconds: 20
55   periodSeconds: 20
56   timeoutSeconds: 20
57   # necessary to disable liveness probe when setting breakpoints
58   # in debugger so K8s doesn't restart unresponsive container
59   enabled: true
60
61 readiness:
62   port: 50052
63   initialDelaySeconds: 10
64   periodSeconds: 10
65   timeoutSeconds: 20
66
67 service:
68   type: ClusterIP
69   ports:
70   - port: 50052
71     name: executor-grpc
72   - port: 50053
73     name: manager-grpc
74
75 secrets:
76   - uid: api-credentials
77     externalSecret: '{{ tpl (default "" .Values.config.authCredentialsExternalSecret) . }}'
78     type: basicAuth
79     login: '{{ .Values.config.apiUsername }}'
80     password: '{{ .Values.config.apiPassword }}'
81     passwordPolicy: required
82
83 config:
84   # the api credentials below are used to authenticate communication with blueprint
85   # processor API. Py executor in this context is a client of the blueprint processor
86   apiUsername: ccsdkapps
87   apiPassword: ccsdkapps
88   env:
89     appPort: 50052
90     authType: tls-auth
91     logFile: /dev/stdout
92     artifactManagerPort: 50053
93     artifactManagerLogFile: /dev/stdout
94
95 persistence:
96   enabled: true
97   mountSubPath: cds/blueprints/deploy
98   deployedBlueprint: /opt/app/onap/blueprints/deploy
99
100 ingress:
101   enabled: false
102
103 flavor: small
104
105 resources:
106   small:
107     limits:
108       cpu: 2
109       memory: 4Gi
110     requests:
111       cpu: 1
112       memory: 1Gi
113   large:
114     limits:
115       cpu: 4
116       memory: 8Gi
117     requests:
118       cpu: 2
119       memory: 4Gi
120   unlimited: {}