How to retrieve values.yaml for a specific package
search cancel

How to retrieve values.yaml for a specific package

book

Article ID: 298450

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

We need to prepare Tanzu Application Platform profiles (Full, iterate, build, run or view) when installing or deploying TAP packages. Check Install your Tanzu Application Platform profile for more info.

We might need to retrieve the VALUES set for a specific package when we need to get the package settings or when we lost the tap-values.yaml file.

Environment

Product Version: Other

Resolution

1. Confirm there are secrets named "PACKAFE_NAME-values" listed in the tap-install namespace.
$ kubectl -n tap-install get secrets | grep -i "values"
accelerator-tap-install-values               Opaque                                1      32d
accelerator-values                           Opaque                                1      37d
api-auto-registration-values                 Opaque                                1      37d
api-portal-values                            Opaque                                1      37d
......
2. We are using tap-gui-values secret as an instance here. Retrieve the values.yaml setting for tap-gui package by running:
$ kubectl -n tap-install get secret tap-gui-values \
  -o json | jq -r '.data."values.yaml"' | base64 -d

ingressDomain: xyz.com
ca_cert_data: ""
service_type: ClusterIP
deployment:
  replicas: 3
app_config:
  proxy:
    /metadata-store:
      target: https://metadata-store-app.metadata-store:8443/api/v1
      ......