tvk-target-browser plugin queries content of mounted target location to get details of backup, backupPlan and metadata details of backup via HTTP/HTTPS calls to target-browser server. Plugin currently supports GET operation on target-browser's /backupplan, /backup, /metadata, /resource-metadata, and /trilio-resources API.
kubectl - kubernetes command-line tool. Install from here.
Target CR should have browsingEnabled field set to true in status
CLI Users can check JSON path - target.status.browsingEnabled
T4K-UI Users should follow steps:
Click on Resource Management from the left navigation bar.
In Resource Management, Backup Plans tab will be selected by default.
Click on Targets tab.
Look for the required target name in the list and ensure that in Browsing column toggle is Enabled for that target.
T4K's web-backend service should be up and running.
T4K's target-browser ingress path[spec.rules[*].host] should be accessible.
If there's no DNS record for `k8s-triliovault-ingress-nginx-controller` service IP and ingress host path then, create one for it on your local system[`/etc/hosts`].
If k8s-triliovault-ingress-nginx-controller service is NodePort type then, make sure NodePort is properly exposed from firewall of all cluster nodes.
Choose a version of target-browser plugin to install and check if release assets have target-browser plugin's package [target-browser_${version}${OS}${ARCH}.tar.gz] for your desired OS & Architecture.
To check OS & Architecture, execute command uname -a on linux/macOS and systeminfo on windows
Set env variable version=v1.x.x [update with your desired version]. If version is not exported, latest tagged version will be considered.
Linux/macOS
Bash or ZSH shells:
(
set -ex; cd "$(mktemp -d)" &&
OS="$(uname | tr '[:upper:]' '[:lower:]')" &&
ARCH="$(uname -m | sed -e 's/x86_64/amd64/' -e 's/\(arm\)\(64\)\?.*/\1\2/' -e 's/aarch64$/arm64/')" &&
if [[ -z ${version} ]]; then version=$(curl -s https://api.github.com/repos/trilioData/tvk-plugins/releases/latest | grep -oP '"tag_name": "\K(.*)(?=")'); fi &&
echo "Installing version=${version}" &&
package_name="target-browser_${version}_${OS}_${ARCH}.tar.gz" &&
curl -fsSLO "https://github.com/trilioData/tvk-plugins/releases/download/"${version}"/${package_name}" &&
tar zxvf ${package_name} && sudo mv target-browser /usr/local/bin/kubectl-tvk_target_browser
)