blob: 71d8852b531935adf0ddbc3753ebda3afec3ad58 [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
PatrikBuhr746ff372021-04-30 15:12:51 +020023 persistence: {}
guillaume.lambert30ec3902021-09-14 12:32:24 +020024
Lathish818ee5d2020-08-26 13:45:03 +010025secrets:
26 - uid: controller-secret
27 type: basicAuth
28 externalSecret: '{{ tpl (default "" .Values.a1controller.credsExternalSecret) . }}'
29 login: '{{ .Values.a1controller.user }}'
30 password: '{{ .Values.a1controller.password }}'
31 passwordPolicy: required
32
Sylvain Desbureauxb5353c92021-02-15 11:30:29 +010033#################################################################
34# AAF part
35#################################################################
36certInitializer:
37 nameOverride: a1p-cert-initializer
38 aafDeployFqi: deployer@people.osaaf.org
39 aafDeployPass: demo123456!
40 # aafDeployCredsExternalSecret: some secret
41 fqdn: a1p
42 fqi: a1p@a1p.onap.org
43 public_fqdn: a1p.onap.org
44 cadi_longitude: "0.0"
45 cadi_latitude: "0.0"
46 app_ns: org.osaaf.aaf
47 credsPath: /opt/app/osaaf/local
48 fqi_namespace: org.onap.a1p
49 aaf_add_config: |
50 echo "*** changing them into shell safe ones"
51 export KEYSTORE_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
52 export TRUSTSORE_PASSWORD=$(tr -cd '[:alnum:]' < /dev/urandom | fold -w64 | head -n1)
53 cd {{ .Values.credsPath }}
54 keytool -storepasswd -new "${KEYSTORE_PASSWORD}" \
55 -storepass "${cadi_keystore_password_p12}" \
56 -keystore {{ .Values.fqi_namespace }}.p12
57 keytool -storepasswd -new "${TRUSTSORE_PASSWORD}" \
58 -storepass "${cadi_truststore_password}" \
59 -keystore {{ .Values.fqi_namespace }}.trust.jks
Sylvain Desbureauxb5353c92021-02-15 11:30:29 +010060 echo "*** save the generated passwords"
61 echo "KEYSTORE_PASSWORD=${KEYSTORE_PASSWORD}" > mycreds.prop
62 echo "TRUSTSORE_PASSWORD=${TRUSTSORE_PASSWORD}" >> mycreds.prop
63 echo "*** change ownership of certificates to targeted user"
64 chown -R 1000 .
65
Dan Timoney6aebe132022-06-08 16:57:12 -040066image: onap/ccsdk-oran-a1policymanagementservice:1.3.2
Konrad Bańka52c38b92020-10-28 16:49:19 +010067userID: 1000 #Should match with image-defined user ID
68groupID: 999 #Should match with image-defined group ID
Lathish818ee5d2020-08-26 13:45:03 +010069pullPolicy: IfNotPresent
70replicaCount: 1
71
72service:
73 type: NodePort
74 name: a1policymanagement
75 both_tls_and_plain: true
76 ports:
77 - name: api
78 port: 8433
79 plain_port: 8081
80 port_protocol: http
81 nodePort: '94'
82
83# SDNC Credentials are used here
84a1controller:
85 user: admin
86 password: Kp8bJ4SXszM0WXlhak3eHlcse2gAw84vaoGGmJvUy2U
87
88sdncLink: https://sdnc.onap:8443
Andreas Geisslerebc3a0b2022-09-22 15:35:46 +020089sdncLinkHttp: http://sdnc.onap:8282
RehanRazae30f9b92021-03-25 14:36:53 +010090# The information about A1-Mediator/RICs can be added here.
91# The A1 policy management service supports both STD & OSC versions.
92# Alternatively, the A1 simulator from ORAN-SC can also be used. It provides STD & OSC versions for A1 termination.
Lathish818ee5d2020-08-26 13:45:03 +010093# Refer source code & run in docker container : https://gerrit.o-ran-sc.org/r/admin/repos/sim/a1-interface
RehanRazae30f9b92021-03-25 14:36:53 +010094# Refer it/dep repo for k8s deployment: https://gerrit.o-ran-sc.org/r/admin/repos/it/dep
95# Example configuration:
96#rics:
97# - name: ric1
98# link: http://ric1url.url.com:1111/
99# managedElementIds:
100# - kista1
101# - kista2
102# - name: ric2
103# link: http://ric2url.url.com:2222/
104# managedElementIds:
105# - kista3
106# - kista4
107rics:
Lathish818ee5d2020-08-26 13:45:03 +0100108streamPublish: http://message-router:3904/events/A1-POLICY-AGENT-WRITE
109streamSubscribe: http://message-router:3904/events/A1-POLICY-AGENT-READ/users/policy-agent?timeout=15000&limit=100
110
111liveness:
112 port: api
113 initialDelaySeconds: 60
114 periodSeconds: 10
115readiness:
116 port: api
117 initialDelaySeconds: 60
118 periodSeconds: 10
119
120#Resource Limit flavor -By Default using small
121flavor: small
122
123resources:
124 small:
125 limits:
126 cpu: 2
PatrikBuhr27c94362021-04-09 10:58:58 +0200127 memory: 300Mi
Lathish818ee5d2020-08-26 13:45:03 +0100128 requests:
129 cpu: 1
PatrikBuhr27c94362021-04-09 10:58:58 +0200130 memory: 150Mi
Lathish818ee5d2020-08-26 13:45:03 +0100131 large:
132 limits:
133 cpu: 4
134 memory: 8Gi
135 requests:
136 cpu: 2
137 memory: 4Gi
138 unlimited: {}
PatrikBuhr27c94362021-04-09 10:58:58 +0200139
140## Persist data to a persistent volume
141persistence:
142 enabled: true
143
144 ## A manually managed Persistent Volume and Claim
145 ## Requires persistence.enabled: true
146 ## If defined, PVC must be created manually before volume will be bound
147 # existingClaim:
148 volumeReclaimPolicy: Retain
149
150 ## database data Persistent Volume Storage Class
151 ## If defined, storageClassName: <storageClass>
152 ## If set to "-", storageClassName: "", which disables dynamic provisioning
153 ## If undefined (the default) or set to null, no storageClassName spec is
154 ## set, choosing the default provisioner. (gp2 on AWS, standard on
155 ## GKE, AWS & OpenStack)
156 ##
157 # storageClass: "-"
158 accessMode: ReadWriteOnce
159 size: 2Gi
160 mountPath: /dockerdata-nfs
161 mountSubPath: nonrtric/policymanagementservice
162
farida azmy7fe88972021-09-27 20:57:13 +0200163#Pods Service Account
164serviceAccount:
165 nameOverride: a1policymanagement
166 roles:
167 - read