Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Gitops module for Application Service Adapter for Tanzu Application Platform

Are you bought-in to managing and auditing updates to Kubernetes resources via Git commits and merge requests? Would you like to be able to install Application Service Adapter for Tanzu Application Platform without the tanzu CLI and necessary plugins? Are you invested in the Carvel toolset and CRDs?

Then, you've come to the right place.

Prerequisites

These CLIs must be installed

  • cf
  • kubectl
  • kapp
  • ytt

You should also have pre-installed

Preparation

Copy the .env.sample file.

cp .env.sample .env

Edit and save the contents of the .env file.

Convert the .tpl files embedded in the directories underneath application-service-adapter.

./to-yaml.sh

After executing this script, you should notice that for each occurrence of a .tpl file there should be a corresponding .yml file of the same name. Observe that place-holder values in a .tpl file are now substituted with real values in the corresponding .yml file. If upon review you see any un-substituted values in a resultant .yml file, go back and edit the .env file, then re-run the script.

Installation

First

export APP_NAME=tas-adapter-for-tap

then

kapp deploy --app $APP_NAME-ns-rbac --file <(ytt --file .init) --diff-changes --yes
kapp deploy --app $APP_NAME --file .install --diff-changes --yes

Verification

kubectl get app -A
kubectl get packageinstall -A
kubectl -n tanzu-system-ingress get service envoy -o jsonpath='{.status.loadBalancer.ingress[*].ip}'
kubectl get httpproxy korifi-api-proxy -n tas-adapter-system

Usage

You'll need to authenticate, then create a RoleBinding, before actually being able to exercise the cf CLI (version 8.7.1 or better).

Follow these instructions.

Removal

kapp delete --app $APP_NAME --yes
kapp delete --app $APP_NAME-ns-rbac --yes