Integrating Customization Changes#
Integrating Customization changes without rebuild#
Note
This section assumes that the custom changes are made in values.yaml of the helm chart of choice. The steps below describe integrating the change by upgrading an already deployed helm chart.
Save the custom changes to your values.yaml file.
Point to the location of your locally saved values.yaml file in the
config-template.yml
of your deployment script as the value for spec > app > configs > app_settings > helm_chart > repo > user_value_override_files. Please refer to Deployment for options on deployment script. A snippet of the relevant section in theconfig-template.yaml
provided below.
app:
configs:
app_settings:
# k8s_namespace: '<replace-with-k8s-namespace-for-app-chart-to-deploy-defaults-to-app>'
# helm_chart:
# repo:
# enable: <true/false-defaults-to-true>
# repo_url: '<replace-with-app-chart-helm-repo-url-defaults-to-https://helm.ngc. nvidia.com/nvidia/ace>'
# chart_name: '<replace-with-app-chart-name-defaults-to-ucs-tokkio-app-base-3-stre am-llm-rag-3d-ov>'
# chart_version: '<replace-with-chart-version-defaults-to-'4.1.4'>'
# release_name: '<replace-with-release-name-for-helm-deploy-defaults-to-'tokkio-app' >'
# user_value_override_files: ['list-of-absolute-path-of-value-override-files']
# local:
# enable: <true/false-defaults-to-false>
# path: '<absolute-path-of-helm-chart-present-locally>'
# release_name: '<replace-with-release-name-for-helm-deploy-defaults-to-'tokkio-app' >'
# user_value_override_files: ['list-of-absolute-path-of-value-override-files']
Note
For the step above, please use the path spec > app > configs > app_settings > helm_chart > local > path spec > app > configs > app_settings > helm_chart > local > user_value_override_files in case you are using the local version of the helm chart.
Run the deployment script to reflect the changes. A sample command shown below for the same below. Please use the correct path and name for your config-template here:
./envbuild.sh install --component app --config-file ./config-template.yml
Integrating Customization changes with rebuild#
Tokkio uses the UCS Tools to build and deploy its microservices using UCS Tools.
Prerequisites#
Download and install the UCS tool.
Ensure to sync the repo for UCS tools, as instructed in the documentation referenced above.
Make sure the required privileges for pulling from UCS repository are granted
Make sure that you have NGC registry created for your team where you can upload the custom resources or charts.
Follow the steps below to build a customized version of Tokkio application
Reference the newly updated version of the microservice (if applicable) in tokkio-app.yaml and update the tokkio-app-params.yaml file if necessary.
Build the app with UCS app builder to create a helm chart:
$ ucf_app_builder_cli app build <app-spec-yaml> <param-yaml> # <param-yaml> is optional
Package and publish the chart into NGC:
$ helm package <APP>-<VERSION> $ ngc registry chart push --org ORG_NAME --team TEAM_NAME ORG_NAME/TEAM_NAME/CHART_NAME:VERSION
Update the
config-template.yml
of your deployment script to reflect the path for the new helm chart (local or repo). A snippet of the relevant section in theconfig-template.yaml
provided below. Please refer to Deployment for options on deployment script.
app:
configs:
app_settings:
# k8s_namespace: '<replace-with-k8s-namespace-for-app-chart-to-deploy-defaults-to-app>'
# helm_chart:
# repo:
# enable: <true/false-defaults-to-true>
# repo_url: '<replace-with-app-chart-helm-repo-url-defaults-to-https://helm.ngc. nvidia.com/nvidia/ace>'
# chart_name: '<replace-with-app-chart-name-defaults-to-ucs-tokkio-app-base-3-stre am-llm-rag-3d-ov>'
# chart_version: '<replace-with-chart-version-defaults-to-'4.1.4'>'
# release_name: '<replace-with-release-name-for-helm-deploy-defaults-to-'tokkio-app' >'
# user_value_override_files: ['list-of-absolute-path-of-value-override-files']
# local:
# enable: <true/false-defaults-to-false>
# path: '<absolute-path-of-helm-chart-present-locally>'
# release_name: '<replace-with-release-name-for-helm-deploy-defaults-to-'tokkio-app' >'
# user_value_override_files: ['list-of-absolute-path-of-value-override-files']
Uninstall previously installed Tokkio chart:
./envbuild.sh uninstall --component app
Run the deployment script to install the updated chart. A sample command shown below for the same below. Please use the correct path and name for your config-template here:
./envbuild.sh install --component app --config-file ./config-template.yml