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-namespaces
tanzu package repository add nginx-repo --url mamachanko/tanzu-nginx-repo:0.0.0
... or more conveniently
make repo-install
tanzu package install nginx \
--package-name nginx.mamachanko.com \
--version <version> \
--values-file sample-values.yml
Uninstall the package with:
tanzu package installed delete nginx
Uninstall the package repository with:
tanzu package repository delete nginx-repo
Uninstall Tanzu components with:
kapp delete --app tanzu-components --yes