Service Tracker is a sample application that displays a dashboard of weather, flights, and earthquakes. It is defined in accordance with the OAM v1alpha2 specification.
app-service-tracker
requires that Crossplane, at least one provider, and one
of the two OAM addons be installed. You may also install a stack for one of the
providers to define some basic resource classes. Options for each are listed
below:
Providers
Stacks
OAM Addons
To install app-service-tracker
, use a StackInstal
:
apiVersion: stacks.crossplane.io/v1alpha1
kind: StackInstall
metadata:
name: "service-tracker-sample"
namespace: crossplane-system
spec:
package: "crossplane/app-service-track:<version>"
To create an instance of the app, create a ServiceTracker
:
apiVersion: oam.apps.crossplane.io/v1alpha1
kind: ServiceTracker
metadata:
name: service-tracker
spec:
weatherAPIReplicas: 3
make build
app-service-tracker
can be tested locally by installing
Kind and
Crossplane, then running the
following commands:
kind create cluster
make build
kind load docker-image crossplane/stack-oam:local
kubectl apply -f install.yaml
kubectl apply -f example.yaml