This demo repository demonstrates Dynatrace used with Kubernetes
You'll need Docker installed to use this demo. You'll also need to enable the built-in Kubernetes cluster.
Create two environment variables for DYNATRACE_API_TOKEN
and DYNATRACE_PAAS_TOKEN
Follow the docs to generate them:
Run from the project root. This will install dependencies for each service.
npm install
There are several images that need to be built. Build them all by running:
sh build-images.sh
Apply the k8s configuration, replica scale can be modified for demonstration purposes.
Configuration lives in deployment.yaml
sh deploy-kube.sh
You can optionally set up the kubernetes web UI. The script will install it automatically, but you'll need to create a sample user and save the Bearer Token to login with. expose the web UI with:
kubectl proxy
It should now be available at http://localhost:8001/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/
This will remove all namespace, and associated pods, deployments, and ingresses
sh cleanup.sh
Local development of the demo apps without kube or dynatrace monitoring
Install dependencies the same way from the project root
npm install
Docker/k8s is not required for the development server
npm run start:dev
This will start the React app in dev mode, and the server layers with a proxy for the React app. They should behave the same as their containerized counterparts.