OCNRF Configuration

This section describes about the OCNRF customization.

The OCNRF deployment is customized by overriding the default values of various configurable parameters.

Customize the yaml file ocnrf-custom-values-1.2.0.yaml as per the required parameters.

The ocnrf-custom-values-1.2.0.yaml template can be downloaded from OHC.

Download the package Network Repository Function (NRF) Custom Template and Unzip to get ocnrf-custom-values-1.2.0.yaml file.

Sample content of ocnrf-custom-values-1.2.0.yaml

Note:

# Copyright 2019 (C), Oracle and/or its affiliates. All rights reserved.
 
 
# This yaml file could be supplied in helm install command when deploying OCNRF v1.2.0
#
# helm install ocnrf/ --name ocnrf --namespace <namespace> -f <this file>
#
# Compatible with OCNRF CHART VERSION 1.2.0
#
# I.
# Update the parameters in global and microservices sections
# 1.) Configure nrfName. This is unique deployment name for OC-NRF
#     global.nrfName
#
# 2.) Set the hostname and port number of the primary and secondary sql nodes in
#     global.mysql.primary.host
#     global.mysql.secondary.host
#     global.mysql.port
#     global.mysql.database
#     global.mysql.username
#     global.mysql.password
#
# 3.) Set ambassador Id. Ambassador Id to uniquely identify the Ambassador instance in cluster.
#     All 3 values below should be same.
#
#     global.ambassadorId
#     ambassador.ambassador.id
#     ambassador.service.annotations.getambassador.io/config.ambassador_id
#
#
# 4.) Set ocnrf enpoint. Service Name for OC-NRF API-GW. Format:- NAME-endpoint
#     Here NAME is helm release name.
#    
# I.
# - To configure SCP as outbound proxy in NRF, if needed.
# set the SCP worker's k8s service name (<servicename>.<namespace> or <complete fqdn> and port in
# nfsubscription.http.proxy.host
# nfsubscription.http.proxy.port
#
#############
 
# section:- global
global:
  nrfName: "default-ocnrf"
  jaeger:
   service:
     name: "cne-tracer-jaeger-collector.cne-infra.svc.cluster.local"
     port: 9411
  mysql:
    primary:
      host: "ocnrf-mysql"
    secondary:
      host: "ocnrf-mysql"
    port: 3306
    database: "nrfdb"
    username: "xxxxxx"
    password: "xxxxxx
  endpoint: "ocnrf-endpoint"
  endpointPort: 80
  ambassadorId: "ocnrf-endpoint"
 
# section:- nfregistration
nfregistration:
  image:
    repository: ocnrf/ocnrf-nfregistration
    tag: 1.2.0
    pullPolicy: IfNotPresent
 
# section:- nfsubscription
nfsubscription:
  image:
    repository: ocnrf/ocnrf-nfsubscription
    tag: 1.2.0
    pullPolicy: IfNotPresent
  http:
    proxy:
      host:
      port: 80
 
# section:- nrfauditor
nrfauditor:
  image:
    repository: ocnrf/ocnrf-nrfauditor
    tag: 1.2.0
    pullPolicy: IfNotPresent
 
# section:- nfdiscovery
nfdiscovery:
  image:
    repository: ocnrf/ocnrf-nfdiscovery
    tag: 1.2.0
    pullPolicy: IfNotPresent
  nrfSupportedFeature: false
 
# section:- nrfconfiguration
nrfconfiguration:
  image:
    repository: ocnrf/ocnrf-nrfconfiguration
    tag: 1.2.0
    pullPolicy: IfNotPresent
  service:
    configServiceNetworkNameEnabled: true
    configServiceNetworkName: "metallb.universe.tf/address-pool: oam"
 
# section:- ambassador 
ambassador:
  fullnameOverride: ocnrf-endpoint
  ambassador:
    id: ocnrf-endpoint
  image:
    repository: ocnrf/ocnrf-endpoint
    tag: 0.50.3
    pullPolicy: IfNotPresent
  podAnnotations:
     prometheus.io/scrape: "true"
     prometheus.io/port: "9102"
  prometheusExporter:
    repository: ocnrf/prom/statsd-exporter
    tag: v0.8.1
  service:
    annotations :
      metallb.universe.tf/address-pool: signaling
      getambassador.io/config: |
           ---
           apiVersion: ambassador/v1
           kind: Module
           name: ambassador
           ambassador_id: ocnrf-endpoint
           config:
             service_port: 8080