blob: c521fb8c845afbec0b40a119e608c006f9186c3b [file] [log] [blame]
vaibhav_16dece04b2fe2018-03-22 09:07:12 +00001# Copyright © 2017 Amdocs, Bell Canada
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 language governing permissions and
13# limitations under the License.
14
Priyankaec757972018-03-28 11:23:59 +000015#################################################################
16# Global configuration defaults.
17#################################################################
18global:
19 nodePortPrefix: 302
Sylvain Desbureauxbc1f4be2021-02-16 11:51:30 +010020
21#################################################################
22# Certificate configuration
23#################################################################
24certInitializer:
25 nameOverride: cli-cert-initializer
26 aafDeployFqi: deployer@people.osaaf.org
27 aafDeployPass: demo123456!
28 # aafDeployCredsExternalSecret: some secret
29 fqdn: "cli"
30 app_ns: "org.osaaf.aaf"
31 fqi_namespace: "org.onap.cli"
32 fqi: "cli@cli.onap.org"
33 public_fqdn: "aaf.osaaf.org"
34 cadi_longitude: "0.0"
35 cadi_latitude: "0.0"
36 credsPath: /opt/app/osaaf/local
37 aaf_add_config: |
38 echo "*** retrieving password for keystore and trustore"
39 export $(/opt/app/aaf_config/bin/agent.sh local showpass \
40 {{.Values.fqi}} {{ .Values.fqdn }} | grep '^c' | xargs -0)
41 if [ -z "$cadi_keystore_password_p12" ]
42 then
43 echo " /!\ certificates retrieval failed"
44 exit 1
45 else
46 echo "*** transform AAF certs into pem files"
47 mkdir -p {{ .Values.credsPath }}/certs
48 keytool -exportcert -rfc -file {{ .Values.credsPath }}/certs/cacert.pem \
49 -keystore {{ .Values.credsPath }}/{{ .Values.fqi_namespace }}.trust.jks \
50 -alias ca_local_0 \
51 -storepass $cadi_truststore_password
52 openssl pkcs12 -in {{ .Values.credsPath }}/{{ .Values.fqi_namespace }}.p12 \
53 -nokeys -out {{ .Values.credsPath }}/certs/cert.pem \
54 -passin pass:$cadi_keystore_password_p12 \
55 -passout pass:$cadi_keystore_password_p12
56 echo "*** generating needed file"
57 cat {{ .Values.credsPath }}/{{ .Values.fqi_namespace }}.key \
58 {{ .Values.credsPath }}/certs/cert.pem \
59 {{ .Values.credsPath }}/certs/cacert.pem \
60 > {{ .Values.credsPath }}/certs/fullchain.pem;
61 cat {{ .Values.credsPath }}/certs/fullchain.pem
62 echo "*** change ownership of certificates to targeted user"
63 chown -R 33 {{ .Values.credsPath }}
64 fi
65
66
Priyankaec757972018-03-28 11:23:59 +000067#################################################################
68# Application configuration defaults.
69#################################################################
70# application image
Bogumil Zebek0d121a22021-02-24 10:01:44 +010071image: onap/cli:6.0.1
subhash kumar singhfc3fa1e2017-08-31 23:33:16 +053072pullPolicy: Always
rajeshkalai91524d02018-09-18 03:39:18 -040073flavor: small
Priyankaec757972018-03-28 11:23:59 +000074
75# application configuration
76config:
77 climode: daemon
78
79# default number of instances
80replicaCount: 1
81
82nodeSelector: {}
83
84affinity: {}
85
86# probe configuration parameters
87liveness:
88 initialDelaySeconds: 10
89 periodSeconds: 10
90 # necessary to disable liveness probe when setting breakpoints
91 # in debugger so K8s doesn't restart unresponsive container
92 enabled: true
93
94readiness:
95 initialDelaySeconds: 10
96 periodSeconds: 10
97
98service:
99 type: NodePort
100 name: cli
Kanagaraj Manickamfed21122020-04-04 09:44:19 +0530101 externalPort: 443
Priyankaec757972018-03-28 11:23:59 +0000102 externalPort1: 9090
Kanagaraj Manickamfed21122020-04-04 09:44:19 +0530103 internalPort: "443"
104 internalPort1: 9090
Priyankaec757972018-03-28 11:23:59 +0000105 nodePort: "60"
Mandeep Khinda9ef4d432018-05-17 20:16:06 +0000106 nodePort1: "71"
Priyankaec757972018-03-28 11:23:59 +0000107
108ingress:
109 enabled: false
Lucjan Bryndzafaf19852019-12-02 13:30:20 +0100110 service:
Lucjan Bryndza05649652020-04-29 08:52:33 +0000111 - baseaddr: "cli.api"
Lucjan Bryndzafaf19852019-12-02 13:30:20 +0100112 name: "cli"
Kanagaraj Manickamfed21122020-04-04 09:44:19 +0530113 port: 443
Lucjan Bryndza05649652020-04-29 08:52:33 +0000114 - baseaddr: "cli2.api"
Lucjan Bryndzafaf19852019-12-02 13:30:20 +0100115 name: cli
116 port: 9090
117 config:
Sylvain Desbureaux7ce1bc02020-05-06 15:20:39 +0200118 ssl: "redirect"
Priyankaec757972018-03-28 11:23:59 +0000119
Mandeep Khinda60d36d42018-09-24 15:15:48 +0000120# Configure resource requests and limits
121# ref: http://kubernetes.io/docs/user-guide/compute-resources/
rajeshkalai9eb454b2018-09-18 16:43:26 -0400122resources:
123 small:
124 limits:
125 cpu: 1
126 memory: 2Gi
127 requests:
Mandeep Khinda3c134252018-09-19 23:56:37 +0000128 cpu: 10m
129 memory: 500Mi
rajeshkalai9eb454b2018-09-18 16:43:26 -0400130 large:
131 limits:
132 cpu: 4
133 memory: 8Gi
134 requests:
Mandeep Khinda3c134252018-09-19 23:56:37 +0000135 cpu: 2
136 memory: 4Gi
Kanagaraj Manickamfed21122020-04-04 09:44:19 +0530137 unlimited: {}