Giter Club home page Giter Club logo

dyna-kube-demo's Introduction

Dynatrace demo

This demo repository demonstrates Dynatrace used with Kubernetes

Setup

Prerequisites

Docker / k8s

You'll need Docker installed to use this demo. You'll also need to enable the built-in Kubernetes cluster.

Dynatrace

Create two environment variables for DYNATRACE_API_TOKEN and DYNATRACE_PAAS_TOKEN

Follow the docs to generate them:

Install Project Dependencies

Run from the project root. This will install dependencies for each service.

npm install

Build docker images

There are several images that need to be built. Build them all by running:

sh build-images.sh

Apply Kubernetes Configuration

Apply the k8s configuration, replica scale can be modified for demonstration purposes. Configuration lives in deployment.yaml

sh deploy-kube.sh

Kubernetes Web UI

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/

Cleaning up

This will remove all namespace, and associated pods, deployments, and ingresses

sh cleanup.sh

Development

Local development of the demo apps without kube or dynatrace monitoring

Setup

Install dependencies the same way from the project root

npm install

Dev Server

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.

References

Kubernetes

Dynatrace

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.