aws-ia / terraform-aws-eks-blueprints

Configure and deploy complete EKS clusters.
https://aws-ia.github.io/terraform-aws-eks-blueprints/
Apache License 2.0
2.73k stars 1.43k forks source link

blue green upgrade pattern - Where is my workload? Finished the "Create the Green cluster" Section but No Results are Returned #2023

Open Tony-Lutz opened 2 months ago

Tony-Lutz commented 2 months ago

Please describe your question here

blue green upgrade pattern - Where is my workload? Finished the "Create the Green cluster" Section but No Results are Returned

Provide a link to the example/module related to the question

https://github.com/aws-ia/terraform-aws-eks-blueprints/tree/main/patterns/blue-green-upgrade#how-this-work

Additional context


kubectl get deployment -n team-burnham -l app=burnham
github-actions[bot] commented 1 week ago

This issue has been automatically marked as stale because it has been open 30 days with no activity. Remove stale label or comment or this issue will be closed in 10 days

allamand commented 1 week ago

Hi @Tony-Lutz

Once you have created on cluster, you can connect to it and check for the workload with thoses commands :

  1. Connect to the cluster

    eval `terraform output -raw configure_kubectl` # to connect to the cluster
  2. Check for the workload

    $ kubectl get deployment -n team-burnham -l app=burnham
    NAME      READY   UP-TO-DATE   AVAILABLE   AGE
    burnham   3/3     3            3           9d
    nginx     1/1     1            1           9d
  3. Test the application with curl

    URL=$(echo -n "https://" ; kubectl get ing -n team-burnham burnham-ingress -o json | jq ".spec.rules[0].host" -r)
    curl -s $URL | grep CLUSTER_NAME | awk -F "<span>|</span>" '{print $4}'

the response should be the name of the cluster:

Example:

eks-blueprint-blue

Do you have issues with this ?