I am investigating Rancher CLI and its usage possibilities.
... # Install the redis template and specify an answers file location $ rancher app install --answers /example/answers.yaml redis appFoo ... Usage: rancher apps install [OPTIONS] [TEMPLATE_NAME/TEMPLATE_PATH, APP_NAME] Options: --answers value, -a value Path to an answers file, the format of the file is a map with key:value. This supports JSON and YAML. --values value Path to a helm values file. --namespace value, -n value Namespace to install the app into --set value Set answers for the template, can be used multiple times. Example: --set foo=bar --version value Version of the template to use --no-prompt Suppress asking questions and use the default values when required answers are not provided --helm-timeout value Amount of time for helm to wait for k8s commands (default is 300 secs). Example: --helm-timeout 600 (default: 300) --helm-wait Helm will wait for as long as timeout value, for installed resources to be ready (pods, PVCs, deployments, etc.). Example: --helm-wait
How would the
answers.yaml look like? Do I have to provide an
answers.yaml that is basically the
answers.yaml from a Rancher Helm App? Or does it have a different syntax? One could provide a file with key-value pairs that reference the variables in the original
answers.yaml of the Rancher Helm app, so I don’t know if a full
answers.yaml like the one provided in the Rancher Helm App is necessary.
If there would be some template and/or example of an
answers.yaml that is actively being used in this way, I would appreciate that.