This repository contains the files utilized during the tutorial presented in the dedicated IsItObservable episode related to Kyverno
This tutorial will install Kyverno and collect observability data from the various Components of Kyverno.
We will also utilize the following components :
- the OpenTelemetry Operator
- Dynatrace Operator to report the health of the boostrap cluster
- The Opentelemetry Demo
- Hipster-shop
- Unguard All the observability data generated by the environment would be sent to Dynatrace.
The following tools need to be install on your machine :
- jq
- kubectl
- git
- curl
- Helm
- k8S cluster having the admission controller enabled
If you don't have any Dynatrace tenant , then I suggest to create a trial using the following link : Dynatrace Trial
Once you have your Tenant save the Dynatrace tenant url in the variable DT_TENANT_URL (for example : https://dedededfrf.live.dynatrace.com)
DT_TENANT_URL=<YOUR TENANT Host>
The dynatrace operator will require to have several tokens:
- Token to deploy and configure the various components
- Token to ingest metrics and Traces
One for the operator having the following scope:
- Create ActiveGate tokens
- Read entities
- Read Settings
- Write Settings
- Access problem and event feed, metrics and topology
- Read configuration
- Write configuration
- Paas integration - installer downloader
Save the value of the token . We will use it later to store in a k8S secret
API_TOKEN=<YOUR TOKEN VALUE>Create a Dynatrace token with the following scope:
- Ingest metrics (metrics.ingest)
- Ingest logs (logs.ingest)
- Ingest events (events.ingest)
- Ingest OpenTelemetry
- Read metrics
DATA_INGEST_TOKEN=<YOUR TOKEN VALUE>The application will deploy the entire environment:
chmod 777 deployment.sh
./deployment.sh --clustername "${NAME}" --dturl "${DT_TENANT_URL}" --dtingesttoken "${DATA_INGEST_TOKEN}" --dtoperatortoken "${API_TOKEN}" Let's deploy the dashboard located : dynatrace/Kyverno.json
In dynatrace , Open The Dashboard application and click on upload
This dashboard will keep track on the various on :
- The Policy evaluation
- the apiserver admission controller duration
- The policy deployed
- the Health of Kyverno




