Skip to content

Commit f0c19da

Browse files
author
EC2 Default User
committed
add cloudwatch observability
1 parent 700a78a commit f0c19da

4 files changed

Lines changed: 41 additions & 0 deletions

File tree

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
pushd ../../..
4+
EKS_CLUSTER_NAME=$(./hyperpod-describe.sh | tail -n +6 | jq -r .Orchestrator.Eks.ClusterArn | cut -d '/' -f 2)
5+
popd
6+
7+
CMD="aws eks create-addon --addon-name amazon-cloudwatch-observability --cluster-name $EKS_CLUSTER_NAME"
8+
9+
if [ ! "$VERBOSE" == "false" ]; then echo -e "\n${CMD}\n"; fi
10+
eval "${CMD}"
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
pushd ../../..
4+
EKS_CLUSTER_NAME=$(./hyperpod-describe.sh | tail -n +6 | jq -r .Orchestrator.Eks.ClusterArn | cut -d '/' -f 2)
5+
popd
6+
7+
CMD="aws eks describe-addon --addon-name amazon-cloudwatch-observability --cluster-name $EKS_CLUSTER_NAME"
8+
9+
if [ ! "$VERBOSE" == "false" ]; then echo -e "\n${CMD}\n"; fi
10+
eval "${CMD}"
11+
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
pushd ../../..
4+
EKS_CLUSTER_NAME=$(./hyperpod-describe.sh | tail -n +6 | jq -r .Orchestrator.Eks.ClusterArn | cut -d '/' -f 2)
5+
popd
6+
7+
CMD="aws eks delete-addon --addon-name amazon-cloudwatch-observability --cluster-name $EKS_CLUSTER_NAME"
8+
9+
if [ ! "$VERBOSE" == "false" ]; then echo -e "\n${CMD}\n"; fi
10+
eval "${CMD}"
11+
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
4+
CMD="kubectl -n amazon-cloudwatch get pods"
5+
6+
if [ ! "$VERBOSE" == "false" ]; then echo -e "\n${CMD}\n"; fi
7+
eval "${CMD}"
8+

0 commit comments

Comments
 (0)