4 Upgrading Network Exposure Function

User can perform the helm upgrade command in the following scenarios.

  • Update an existing parameter setting, such as global.imageTag, global.envMysqlHost.etc.,
  • Add more parameters per requirement

To update Network Exposure Function (NEF) services, execute the following command and specify the upgrade parameter (new parameters or update existing parameters):

helm upgrade ocnef \

--set globalenvMysqlPrimaryHost=<MYSQL_PRIMARY_HOST>,global.envMysqlSecondaryHost=<MYSQL_SECONDARY_HOST> \

--set global.envMysqlUser=nefusr,global.envMysqlPassword=nefpasswd \

--set global.envJaegerAgentHost=<JAEGER_SERVICE>.<JAEGER_SERVICE_NAMESPACE>,global.envJaegerAgentPort=<JAEGER_SERVICE_PORT> \

--set global.imageTag=<IMAGE_TAG>,global.dockerRegistry=<DOCKER_REGISTRY_ADDRESS> \

--set nef-ti.deploymentNefTiService.envUdmBaseUrl=<UDM_BASE_URI>,nef-ti.deploymentNefTiService.envUdrBaseUrl=<UDR_BASE_URI> \

--set nef-ti.deploymentNefTiService.envBsfBaseUrl=<BSF_BASE_URI>,nef-ti.deploymentNefTiService.envPcfBaseUrl=<PCF_BASE_URI> \

--set nef-bdt.deploymentNefBdtService.envPcfPort=<PCF_PORT>,nef-bdt.deploymentNefBdtService.envPcfHost=<PCF_HOST> \

--set nef-bdt.deploymentNefBdtService.envUdmHost=<UDM_HOST>,nef-bdt.deploymentNefBdtService.envUdmPort=<UDM_PORT>

./<HELM_CHART_NAME_WITH_EXTENSION>

Note:

The upgrade command is similar to install command, because, if user do not specify the same parameters for both upgrade and install, then the settings applied by install command may be lost and use default settings from values.yaml file for missing parameters in upgrade command.