Skip to content

Commit

Permalink
Upgrade EKS Version and Fix EKS EMF Log JSON (#329)
Browse files Browse the repository at this point in the history
  • Loading branch information
sethAmazon authored Aug 10, 2023
1 parent ff42d65 commit fbd0044
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion terraform/eks/daemon/emf/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ resource "kubernetes_daemonset" "service" {
command = [
"/bin/sh",
"-c",
"while true; do CURRENT_TIME=\"$(date +%s%3N)\"; TIMESTAMP=\"$(($CURRENT_TIME *1000))\"; echo '{\"_aws\":{\"Timestamp\":'\"$${TIMESTAMP}\"',\"LogGroupName\":\"EMFEKSLogGroup\",\"CloudWatchMetrics\":[{\"Namespace\":\"EMFEKSNameSpace\",\"Dimensions\":[[\"Type\",\"ClusterName\"]],\"Metrics\":[{\"Name\":\"EMFCounter\",\"Unit\":\"Count\"}]}]},\"Type\":\"Counter\",\"EMFCounter\":5, \"ClusterName\": \"${aws_eks_cluster.this.name}\"}}' | socat -v -t 0 - UDP:0.0.0.0:25888; sleep 60; done"
"while true; do CURRENT_TIME=\"$(date +%s%3N)\"; TIMESTAMP=\"$(($CURRENT_TIME *1000))\"; echo '{\"_aws\":{\"Timestamp\":'\"$${TIMESTAMP}\"',\"LogGroupName\":\"EMFEKSLogGroup\",\"CloudWatchMetrics\":[{\"Namespace\":\"EMFEKSNameSpace\",\"Dimensions\":[[\"Type\",\"ClusterName\"]],\"Metrics\":[{\"Name\":\"EMFCounter\",\"Unit\":\"Count\"}]}]},\"Type\":\"Counter\",\"EMFCounter\":5, \"ClusterName\": \"${aws_eks_cluster.this.name}\"}' | socat -v -t 0 - UDP:0.0.0.0:25888; sleep 60; done"
]
env {
name = "HOST_IP"
Expand Down
2 changes: 1 addition & 1 deletion terraform/eks/daemon/emf/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ variable "cwagent_image_tag" {

variable "k8s_version" {
type = string
default = "1.24"
default = "1.27"
}

variable "ami_type" {
Expand Down

0 comments on commit fbd0044

Please sign in to comment.