Before attempting this tutorial, you should have attempted and be comfortable with the guided vHOT session.
👉 You must have access to the dxs-apac
Google project
👉 This guide will work on any cloud provider, but cluster creation instructions are only given for the dxs-apac
project on Google Cloud.
You will first create a kubernetes cluster. Then deploy an application onto the cluster called "Hipster Shop".
This application is a modified version of Google's Hipster Shop. The application is available on HTTP port 80.
Open your Google cloud shell and clone this repo: https://github.com/dt-apac-services/macselfstudy
Add the executable flag to the ~/macselfstudy/createCluster.sh
file and run the shell script to create your cluster.
The GCP_PROJECT
value can be retrieved from the URL of the Kubernetes overview page. eg. https://console.cloud.google.com/kubernetes/list?authuser=0&project=dxs-apac
Your cluster will be tagged with Owner: $USERNAME
. USERNAME
must be without spaces (underscores are accepted
chmod +x ~/macselfstudy/createCluster.sh
GCP_PROJECT=*** CLUSTER_NAME=my_cluster_1 USERNAME=joe_bloggs ~/macselfstudy/createCluster.sh
Once the cluster is operational, deploy the application into the default
namespace using ~/macselfstudy/shop.yaml
adam_gardner@cloudshell:~ (dxs-apac)$ kubectl get pods
NAME READY STATUS RESTARTS AGE
adservice-55c5c664d8-lx6lb 1/1 Running 0 17m
cartservice-5ddc6bbb6c-grhnh 1/1 Running 0 17m
checkoutservice-5ddb9f689b-k9m49 1/1 Running 0 18m
currencyservice-6d848bc488-hptjd 1/1 Running 0 17m
emailservice-576b4f5648-m2d8r 1/1 Running 0 18m
frontend-6869df7cff-d58d7 1/1 Running 0 18m
frontend-proxy-75c88c4f75-vmzsg 1/1 Running 0 18m
loadgenerator-7f7fb4b896-nzn9g 1/1 Running 0 17m
paymentservice-84dff89b56-k5n47 1/1 Running 0 18m
productcatalogservice-6b5cc4fd8b-swkl4 1/1 Running 0 17m
recommendationservice-56b4c48c54-9zsm7 1/1 Running 0 18m
redis-cart-77d694dd7-8p6zp 1/1 Running 0 17m
shippingservice-79dcbc4794-69xqf 1/1 Running 0 17m
Once all pods are running, Google will automatically create an external load balancer and IP address for you.
You will be able to access the application using the external IP address from the frontend-proxy
service.
Note: The Hipster shop takes some time to come online, you may see the following error. Just wait a few moments, it'll resolve once the application starts properly.
Your hipster shop should now be running:
Imagine Hipster shop is your customer's website. The task is to configure the hipster shop using Dynatrace Monaco and any other tooling you have access to.
The customer trusts you as the Dynatrace expert to deliver the configuration. Their only stipulation is that you provide the configuration as code, the end product cannot rely on manual configuration.
Treat this as a real exercise and build whatever configuration you would at a customer site.