Customizing User Data Repository

The User Data Repository deployment could be customized by overriding the default values of various configurable parameters.

In Deploying Cloud Native User Data Repository, the MySQL host is customized.

A ocudr-custom-values-1.3.0.yaml file could be prepared by hand to customize the parameters.

Following is an example of User Data Repository customization file.

# Copyright 2019 (C), Oracle and/or its affiliates. All rights reserved.
 
global:
mysql:
dbServiceName: "udrdbservice" #This is a read only parameter. Do not change the default value.
port: "3306"
dbname: "udrdb" 
dsusername: "udruser"
dspassword: "Dukw1@m?"
udrdbservice:
primaryhost: "10.176.246.123"
secondaryhost: "10.176.246.123"
port: "3306"
targetPort: "3306"
jaeger:
service:
name: "occne-tracer-jaeger-collector.occne-infra"
port: 9411
hikari:
poolsize: "25"
ambassador:
id: ambassador-ocudr

nudr-drservice:
image:
repository: reg-1:5000/ocudr/nudr_datarepository_service
tag: 1.3.0
pullPolicy: IfNotPresent

service:
http2enabled: "true"
type: ClusterIP
port:
http: 5001
https: 5002
management: 9000

notify:
port:
http: 5001
https: 5002

deployment:
replicaCount: 2

logging:
level:
root: "WARN"

subscriber:
autocreate: "true"

validate:
smdata: "true"
 
resources:
requests:
cpu: 3
target:
averageCpuUtil: 80

minReplicas: 1
maxReplicas: 4

udrnotifyservice:
image:
repository: reg-1:5000/ocudr/nudr_notify_service
tag: 1.3.0
pullPolicy: Always

service:
http2enabled: "true"
type: ClusterIP
port:
http: 5001
https: 5002
management: 9000

deployment:
replicaCount: 2

notification:
retrycount: "3"
retryinterval: "5"
retryerrorcodes: "400,429,500,503"
 
logging:
level:
root: "WARN"

resources:
requests:
cpu: 3
target:
averageCpuUtil: 80

minReplicas: 1
maxReplicas: 4

ambassador:
ambassador:
id: ambassador-ocudr
replicaCount: 1
service:
type: LoadBalancer
annotations :
metallb.universe.tf/address-pool: signalling
getambassador.io/config: |
--- 
apiVersion: ambassador/v1
kind: Module
name: ambassador
ambassador_id: ambassador-ocudr
config:
service_port: 8080
adminService:
create: false
type: LoadBalancer
annotations:
metallb.universe.tf/address-pool: signaling
image:
repository: quay.io/datawire/ambassador
tag: 0.50.3
pullPolicy: IfNotPresent
podAnnotations:
prometheus.io/scrape: "true"
prometheus.io/port: "9102"
prometheusExporter:
enabled: true
resources:
requests:
cpu: 3
 
nudr-nrf-client-service:
host:
baseurl: "http://ocnrf-endpoint.mynrf.svc.cluster.local/nnrf-nfm/v1/nf-instances"
proxy:
ssl: "false"
logging:
level:
root: "WARN"
image:
repository: reg-1:5000/ocudr/nrf_client_service
tag: 1.3.0
pullPolicy: IfNotPresent
heartBeatTimer: "90"
groupId: "udr-1"
capacityMultiplier: "500"
supirange: "[{\"start\": \"10000000000\", \"end\": \"20000000000\"}]"
priority: "10"
livenessProbeUrl: "http://nudr-notify-service.myudr.svc.cluster.local:9000/actuator/health,http://nudr-drservice.myudr.svc.cluster.local:9000/actuator/health,http://ocudr-ambassador.myudr.svc.cluster.local/ambassador/v0/check_alive"
fqdn: "ocudr-ambassador.myudr.svc.cluster.local"