Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add GKE Autopilot Example #302

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant