blob: 022ef5733cb07ad007d656f7b72839c484af2cf9 [file] [log] [blame]
Lathish818ee5d2020-08-26 13:45:03 +01001################################################################################
2# Copyright (c) 2020 Nordix Foundation. #
Konrad Bańka52c38b92020-10-28 16:49:19 +01003# Copyright © 2020 Samsung Electronics, Modifications #
Lathish818ee5d2020-08-26 13:45:03 +01004# #
5# Licensed under the Apache License, Version 2.0 (the "License"); #
6# you may not use this file except in compliance with the License. #
7# You may obtain a copy of the License at #
8# #
9# http://www.apache.org/licenses/LICENSE-2.0 #
10# #
11# Unless required by applicable law or agreed to in writing, software #
12# distributed under the License is distributed on an "AS IS" BASIS, #
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. #
14# See the License for the specific language governing permissions and #
15# limitations under the License. #
16################################################################################
17# Default values for Policy Management Service.
18# This is a YAML-formatted file.
19# Declare variables to be passed into your templates.
20
21global:
Sylvain Desbureauxd4a6afd2020-11-21 22:01:15 +010022 nodePortPrefix: 302
Lathish818ee5d2020-08-26 13:45:03 +010023
24secrets:
25 - uid: controller-secret
26 type: basicAuth
27 externalSecret: '{{ tpl (default "" .Values.a1controller.credsExternalSecret) . }}'
28 login: '{{ .Values.a1controller.user }}'
29 password: '{{ .Values.a1controller.password }}'
30 passwordPolicy: required
31
Sylvain Desbureauxb5353c92021-02-15 11:30:29 +010032#################################################################
33# AAF part
34#################################################################
35certInitializer:
36 nameOverride: a1p-cert-initializer
37 aafDeployFqi: deployer@people.osaaf.org
38 aafDeployPass: demo123456!
39 # aafDeployCredsExternalSecret: some secret
40 fqdn: a1p
41 fqi: a1p@a1p.onap.org
42 public_fqdn: a1p.onap.org
43 cadi_longitude: "0.0"
44 cadi_latitude: "0.0"
45 app_ns: org.osaaf.aaf
46 credsPath: /opt/app/osaaf/local
47 fqi_namespace: org.onap.a1p
48 aaf_add_config: |
49 echo "*** changing them into shell safe ones"
50 export KEYSTORE_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
51 export TRUSTSORE_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
52 cd {{ .Values.credsPath }}
53 keytool -storepasswd -new "${KEYSTORE_PASSWORD}" \
54 -storepass "${cadi_keystore_password_p12}" \
55 -keystore {{ .Values.fqi_namespace }}.p12
56 keytool -storepasswd -new "${TRUSTSORE_PASSWORD}" \
57 -storepass "${cadi_truststore_password}" \
58 -keystore {{ .Values.fqi_namespace }}.trust.jks
59 echo "*** set key password as same password as keystore password"
60 keytool -keypasswd -new "${KEYSTORE_PASSWORD}" \
61 -keystore {{ .Values.fqi_namespace }}.p12 \
62 -keypass "${cadi_keystore_password_p12}" \
63 -storepass "${KEYSTORE_PASSWORD}" -alias {{ .Values.fqi }}
64 echo "*** save the generated passwords"
65 echo "KEYSTORE_PASSWORD=${KEYSTORE_PASSWORD}" > mycreds.prop
66 echo "TRUSTSORE_PASSWORD=${TRUSTSORE_PASSWORD}" >> mycreds.prop
67 echo "*** change ownership of certificates to targeted user"
68 chown -R 1000 .
69
Dan Timoney9e310e72021-02-23 11:25:39 -050070image: onap/ccsdk-oran-a1policymanagementservice:1.1.1
Konrad Bańka52c38b92020-10-28 16:49:19 +010071userID: 1000 #Should match with image-defined user ID
72groupID: 999 #Should match with image-defined group ID
Lathish818ee5d2020-08-26 13:45:03 +010073pullPolicy: IfNotPresent
74replicaCount: 1
75
76service:
77 type: NodePort
78 name: a1policymanagement
79 both_tls_and_plain: true
80 ports:
81 - name: api
82 port: 8433
83 plain_port: 8081
84 port_protocol: http
85 nodePort: '94'
86
87# SDNC Credentials are used here
88a1controller:
89 user: admin
90 password: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
91
92sdncLink: https://sdnc.onap:8443
93# Add your own A1 Mediator link. Supports both STD & OSC Version. ex. http://<ip>:<port>
94# Alternatively you can also use the A1 simulator available in ORAN. It provides STD & OSC Version for A1 termination.
95# Refer source code & run in docker container : https://gerrit.o-ran-sc.org/r/admin/repos/sim/a1-interface
96# Refer it/dep repo for k8's deployment: https://gerrit.o-ran-sc.org/r/admin/repos/it/dep
97ricLink:
98streamPublish: http://message-router:3904/events/A1-POLICY-AGENT-WRITE
99streamSubscribe: http://message-router:3904/events/A1-POLICY-AGENT-READ/users/policy-agent?timeout=15000&limit=100
100
101liveness:
102 port: api
103 initialDelaySeconds: 60
104 periodSeconds: 10
105readiness:
106 port: api
107 initialDelaySeconds: 60
108 periodSeconds: 10
109
110#Resource Limit flavor -By Default using small
111flavor: small
112
113resources:
114 small:
115 limits:
116 cpu: 2
117 memory: 4Gi
118 requests:
119 cpu: 1
120 memory: 2Gi
121 large:
122 limits:
123 cpu: 4
124 memory: 8Gi
125 requests:
126 cpu: 2
127 memory: 4Gi
128 unlimited: {}