Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Conversation

@patrickywl
Copy link

@patrickywl patrickywl commented Jun 1, 2023

This PR adds GKE Autopilot Example

Prerequisite

Setup gcloud CLI
Setup Kubectl
Setup Helm v3
Setup git

Create a GKE Autopilot Cluster

Setup a GKE autopilot cluster / Tested on v1.24.10-gke.2300
Setup VPC Firewall for public ingress

Verify Command-line access by running the following command:
$ gcloud container clusters get-credentials {CLUSTER} --zone {ZONE} --project {PROJECT}

Deploy E-commerce Project

Clone the project
$ git clone https://github.com/patrickywl/ecommerce-workshop.git
(This is a forked repository of https://github.com/DataDog/ecommerce-workshop)

Deploy

$ cd ecommerce-workshop/deploy/gcp/gke-autopilot/storedog
$ k apply -f .

Verify pods are Running
$ k get pod

Verify access
$ k get ingress

NAME         CLASS    HOSTS    ADDRESS          PORTS   AGE
storefront   <none>   *        xxx.xxx.xxx.xxx  80     31m

Access Storedog at http://xxx.xxx.xxx.xxx/ via Browser

Deploy Datadog Agent

$ cd ecommerce-workshop/deploy/gcp/gke-autopilot/datadog-agent

Datadog API Key can be found on https://app.datadoghq.com/organization-settings/api-keys

$ helm install datadog-agent -f datadog-values.yaml --set datadog.site='datadoghq.com' \
--set datadog.apiKey={}' \ 
--set datadog.clusterName={} \
--set datadog.logs.enabled='true' \
--set datadog.logs.containerCollectAll='true' \
--set providers.gke.autopilot='true' \
datadog/datadog

Happy monitoring in Datadog!
https://app.datadoghq.com/

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant