NodeJS Zero-Config Workshop

Deploying the OpenTelemetry Demo

2 min

1. Create a namespace

To not conflict with other workshops, we will deploy the OpenTelemetry Demo in a separate namespace called otel-demo. To create the namespace, run the following command:

bash
kubectl create namespace otel-demo

2. Deploy the OpenTelemetry Demo

Next, change to the directory containing the OpenTelemetry Demo application:

bash
cd ~/workshop/apm

Deploy the OpenTelemetry Demo application:

bash
kubectl apply -n otel-demo -f otel-demo.yaml

Once the application is deployed, we need to wait for the pods to be in a Running state. To check the status of the pods, run the following command:

bash
kubectl get pods -n otel-demo

3. Validate the application is running

To validate the application is running, we will port-forward the frontend service. To do this, run the following command:

bash
kubectl port-forward svc/opentelemetry-demo-frontend 8083:8080 -n otel-demo --address='0.0.0.0'

Obtain the public IP address of the instance you are running on. You can do this by running the following command:

bash
curl ifconfig.me

Once the port-forward is running, you can access the application by opening a browser and navigating to http://<public IP address>:8083. You should see the following:

OpenTelemetry Demo

Once you have confirmed the application is running, you can close the port-forward by pressing ctrl + c.

Next, we will deploy the OpenTelemetry Collector.

Last Modified ·