Reading Time: 4 mins
Overview
In this section, I will walk you through the steps required to deploy an application using the Tanzu Application Platform. Before moving further, please ensure below are completed:
- Prepare set up is completed, If not done, then follow the steps in the post
- Default kubeconfig context is set to the target Kubernetes cluster.
- Tanzu Application Platform GUI is successfully installed, for more details, read here
Install default Supply Chain
The Out of the Box Supply Chain Basic package provides the most basic ClusterSupplyChain that brings an application from source code to a deployed instance of it running in a Kubernetes environment.
- Create a file named
ootb-supply-chain-basic-values.yaml
that specifies the corresponding values to the properties you want to tweak.
- Install the package by running:
Setup Developer Namespaces to use Installed Packages
To create workload for your application using the registry credentials specified, run these commands to add credentials and Role-Based Access Control (RBAC) rules to the namespace that you plan to create the workload in:
- Add placeholder read secrets, a service account, and RBAC rules to the developer namespace by running:
Deploy Application
- Follow these steps to get started with an accelerator called
Tanzu-Java-Web-App
. - From the Tanzu Application Platform GUI portal, click on Accelerators on the left side of the navigation bar to see the list of available accelerators.
- Locate the Tanzu Java Web App accelerator, which is a sample Spring Boot web app, and click on Choose button.
- In the Generate Accelerators prompt, replace the default value
dev.local
in the prefix for container image registry field with the registry in the form ofSERVER-NAME/REPO-NAME
. TheSERVER-NAME/REPO-NAME
must match what was specified forregistry
as part of the installation values forootb_supply_chain_basic
. ClickNEXT STEP
, verify the provided information, and clickCREATE
.
- After the Task Activity processes are complete, click on the
DOWNLOAD ZIP FILE
button
- After downloading the zip file, expand it in a workspace directory and follow your preferred procedure for uploading the generated project files to a Git repository for your new project.
- Deploy the Tanzu Java Web App accelerator by running the
tanzu apps workload create
command:
- Collect the External IP of Envoy service in name space: tanzu-system-ingress
- Navigate to AWS Management console > EC2 > Load Balancers > Copy the name of load balancer for above collected External IP (In this case its Load balancer DNS Name)
- Navigate to AWS Management console > EC2 > Network and Security > Network Interfaces > Search with above collected load balancer name
- Collect the Public IPv4 address
- Add an entry in your local machine /etc/hosts with the IP collected above pointing to hostname: tanzu-java-web-app.tap-install.example.com
- Access the url tanzu-java-web-app.tap-install.example.com and you should see result as below: