A demo Tanzu Nginx package
Make sure you have the following available:
- kapp (alternatively
kubectl) - tanzu CLI (
>=0.8.0) will all core plugins installed - credentials for index.docker.io
Install kapp-controller and secretgen-controller:
kapp deploy \
--app tanzu-components \
--file https://github.com/vmware-tanzu/carvel-kapp-controller/releases/latest/download/release.yml \
--file https://github.com/vmware-tanzu/carvel-secretgen-controller/releases/latest/download/release.yml In order to avoid index.docker.io's rate-limiting, we need to provide credentials:
tanzu secret registry add dockerhub \
--server index.docker.io \
--username <YOUR-DOCKER-HUB-USERNAME> \
--password <YOUR-DOCKER-HUB-PASSWORD> \
--export-to-all-namespacestanzu package repository add nginx-repo --url mamachanko/tanzu-nginx-repo:0.0.0... or more conveniently
make repo-installtanzu package install nginx \
--package-name nginx.mamachanko.com \
--version <version> \
--values-file sample-values.ymlUninstall the package with:
tanzu package installed delete nginxUninstall the package repository with:
tanzu package repository delete nginx-repoUninstall Tanzu components with:
kapp delete --app tanzu-components --yes