- A kubernetes cluster that you want to install to.
- Tanzu CLI.
- Some coffee
- Access to TAP 1.3.0+
-
Open
rules.mk
and update the versions you want to install. -
Create files containing your credentials under the
creds
folder. You can choose to either name them the names you see inrules.mk
or you can updaterules.mk
to point to your credential files.WARNING: Make sure you don't have extra new lines at the end of your files as it will cause authentication errors.
The expected files are:
creds/tanzu.registry.username
: Your Tanzu Network usernamecreds/tanzu.registry.password
: Your Tanzu Network passwordcreds/my.registry.username
: Your own writable registry's usernamecreds/my.registry.password
: Your own writable registry's password
-
Install the essentials (kapp-controller and secretgen-controller):
make install.essentials
-
Install TAP:
make install.tanzu.secrets make install.tanzu.repository
-
Install the profile:
make install.profile.full
Right now there's only support for the full profile. Maybe I'll add more later. Additionally to speed this up, I've excluded a lot of packages. Modify
config/full/full.yaml
to re-include what you want. You may need to add the appropriate settings too. -
Go have a coffee break. This take a while.
-
Install your dev namespace:
make dev.create.<namespace_you_want>
- Go to
samples/python-function
- From this folder run the following:
tanzu apps workload create <your-workload-name> \ --namespace <your-dev-namespace> \ --type web \ -s <location-to-store-your-source-bundle> \ --local-path . \ --build-env "BP_FUNCTION=func.main"
- Profit!