LabKubernetes
LabKubernetes
Kubernetes
Contents
1. Purpose ...................................................................................................................................... 2
2. Pre-Requisites ............................................................................................................................. 2
3. Education ................................................................................................................................... 2
4. Instructions ................................................................................................................................ 3
5. Submission & Verification .......................................................................................................... 4
1
Kubernetes
1. Purpose
The purpose of this lab is to exercise the ability of Dynatrace to monitor Docker applications running in a
Kubernetes container infrastructure. The education for the lab as well as the steps will be outlined below.
However, the lab will challenge you a bit to help learn the product.
2. Pre-Requisites
1. Oracle VirtualBox with Ubuntu running
a. https://www.virtualbox.org/
b. https://www.ubuntu.com/download/desktop (Opt for LTS)
2. A basic understanding of containers and how applications run in a node architecture.
a. https://cloud.google.com/container-engine/docs/concepts/cluster-architecture
3. Sample architecture for understanding:
a.
3. Education
1. https://github.com/kubernetes/minikube/
a. These are the resources for running a Kubernetes deployment on a virtual Linux machine without
needing virtualization technologies from the local.
2. https://kubernetes.io/docs/user-guide/kubectl-overview/
a. What is Kubernetes?
b. A Kubernetes quick start guide with all the key commands needed to be ran on the command line.
3. https://www.dynatrace.com/support/help/technology-support/container-
platforms/kubernetes/kubernetes-deployment-overview/
2
Kubernetes
a. Dynatrace documentation on the different options for monitoring Kubernetes. For this lab, we’re
using classic full-stack injection.
4. Instructions
1. It’s recommended to use a fresh VM for this lab. Using VirtualBox, spin up a machine with the following
specs (if able):
a. 2048 MB Memory
b. 15 GB Fixed HDD (VDI)
c. 2 CPU’s
d. 64 MB GPU
2. Mount the disk image from the Ubuntu link above and proceed with the install.
a. Make sure to download updates.
b. (OPTIONAL) Install VirtualBox Guest Additions to full screen the VM, use bidirectional copy/paste
features, and create a shared folder.
i. If you are having permissions issues with the shared folder, run this command:
1. sudo adduser <username> vboxsf
3. Install minikube using the link above.
a. After installing minikube: use minikube status to check its installation.
i. You will most likely need to install kubectl, please do so.
b. You will also most likely need to install Docker components.
i. Please use this link as a guide:
1. https://www.digitalocean.com/community/tutorials/how-to-install-and-use-docker-on-
ubuntu-20-04
2. Only run through Steps 1 & 2.
c. Start minikube. Pay attention to starting minikube using the right --vm-driver command.
4. Check the Kubernetes nodes by using: kubectl get nodes
5. Copy the contents of this link into a yaml file, and use kubectl to create the pod / run the app.
a. https://github.com/kubernetes/examples/blob/master/guestbook/all-in-one/guestbook-all-in-one.yaml
6. You can check that the app / pods are running using “minikube dashboard”.
a.
7. Make the app available via web using kubectl port-forward.
3
Kubernetes
b.
9. Proceed with the following Dynatrace Documentation to implement Kubernetes with the Dynatrace
Operator:
a. https://www.dynatrace.com/support/help/technology-support/container-
platforms/kubernetes/monitor-kubernetes-environments/
10. Check your My web application for Guestbook RUM data.
a.