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

update samples with new versions of agent and CI #166

Merged
merged 1 commit into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions container-insights-manifest-update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@

cd "$(dirname "$0")"
k8sDirPrefix="./k8s-deployment-manifest-templates/deployment-mode/daemonset/container-insights-monitoring"
k8sQSDirPrefix="./k8s-quickstart"
ecsDirPrefix="./ecs-task-definition-templates/deployment-mode/daemon-service/cwagent-ecs-instance-metric"

newK8sVersion="k8s/1.3.20"
agentVersion="public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300036.0b573"
newK8sVersion="k8s/1.3.22"
agentVersion="public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300037.1b602"
fluentdVersion="fluent/fluentd-kubernetes-daemonset:v1.10.3-debian-cloudwatch-1.0"
fluentBitVersion="public.ecr.aws/aws-observability/aws-for-fluent-bit:stable"

Expand Down Expand Up @@ -40,6 +41,12 @@ rm ${ecsDirPrefix}/cloudformation-quickstart/cwagent-ecs-instance-metric-cfn.jso
sed -i'.bak' "s|k8s/[0-9]*\.[0-9]*\.[0-9a-z]*|${newK8sVersion}|g;s|public\.ecr\.aws/cloudwatch-agent/cloudwatch-agent:[0-9]*\.[0-9]*\.[0-9a-z]*|${agentVersion}|g" ${k8sDirPrefix}/cwagent/cwagent-daemonset.yaml
rm ${k8sDirPrefix}/cwagent/cwagent-daemonset.yaml.bak

sed -i'.bak' "s|k8s/[0-9]*\.[0-9]*\.[0-9a-z]*|${newK8sVersion}|g;s|public\.ecr\.aws/cloudwatch-agent/cloudwatch-agent:[0-9]*\.[0-9]*\.[0-9a-z]*|${agentVersion}|g" ${k8sQSDirPrefix}/cwagent-operator-rendered.yaml
rm ${k8sQSDirPrefix}/cwagent-operator-rendered.yaml.bak

sed -i'.bak' "s|k8s/[0-9]*\.[0-9]*\.[0-9a-z]*|${newK8sVersion}|g;s|public\.ecr\.aws/cloudwatch-agent/cloudwatch-agent:[0-9]*\.[0-9]*\.[0-9a-z]*|${agentVersion}|g" ${k8sQSDirPrefix}/cwagent-version.yaml
rm ${k8sQSDirPrefix}/cwagent-version.yaml.bak

sed -i'.bak' "s|k8s/[0-9]*\.[0-9]*\.[0-9a-z]*|${newK8sVersion}|g;s|fluent/fluentd-kubernetes-daemonset:.*|${fluentdVersion}|g" ${k8sDirPrefix}/fluentd/fluentd.yaml
rm ${k8sDirPrefix}/fluentd/fluentd.yaml.bak

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
"ContainerDefinitions": [
{
"Name": "cloudwatch-agent",
"Image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300036.0b573",
"Image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300037.1b602",
"MountPoints": [
{
"ReadOnly": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"containerDefinitions": [
{
"name": "cloudwatch-agent",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300036.0b573",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300037.1b602",
"mountPoints": [
{
"readOnly": true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ Resources:
NetworkMode: awsvpc
ContainerDefinitions:
- Name: cloudwatch-agent-prometheus
Image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300036.0b573
Image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300037.1b602
Essential: true
MountPoints: []
PortMappings: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ Resources:
NetworkMode: !Ref ECSNetworkMode
ContainerDefinitions:
- Name: cloudwatch-agent-prometheus
Image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300036.0b573
Image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300037.1b602
Essential: true
MountPoints: []
PortMappings: []
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"containerDefinitions": [
{
"name": "cloudwatch-agent-prometheus",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300036.0b573",
"image": "public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300037.1b602",
"essential": true,
"mountPoints": [
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ spec:
spec:
containers:
- name: cloudwatch-agent
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300036.0b573
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300037.1b602
#ports:
# - containerPort: 8125
# hostPort: 8125
Expand All @@ -42,7 +42,7 @@ spec:
fieldRef:
fieldPath: metadata.namespace
- name: CI_VERSION
value: "k8s/1.3.20"
value: "k8s/1.3.22"
# Please don't change the mountPath
volumeMounts:
- name: cwagentconfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ spec:
fieldRef:
fieldPath: spec.nodeName
- name: CI_VERSION
value: "k8s/1.3.20"
value: "k8s/1.3.22"
resources:
limits:
memory: 200Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ spec:
apiVersion: v1
fieldPath: metadata.name
- name: CI_VERSION
value: "k8s/1.3.20"
value: "k8s/1.3.22"
resources:
limits:
memory: 200Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ spec:
name: cluster-info
key: cluster.name
- name: CI_VERSION
value: "k8s/1.3.20"
value: "k8s/1.3.22"
- name: FLUENT_CONTAINER_TAIL_PARSER_TYPE
value: /^(?<time>.+) (?<stream>stdout|stderr) (?<logtag>[FP]) (?<log>.*)$/
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ spec:
spec:
containers:
- name: cloudwatch-agent
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300036.0b573
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300037.1b602
#ports:
# - containerPort: 8125
# hostPort: 8125
Expand All @@ -127,7 +127,7 @@ spec:
fieldRef:
fieldPath: metadata.namespace
- name: CI_VERSION
value: "k8s/1.3.20"
value: "k8s/1.3.22"
# Please don't change the mountPath
volumeMounts:
- name: cwagentconfig
Expand Down Expand Up @@ -503,7 +503,7 @@ spec:
apiVersion: v1
fieldPath: metadata.name
- name: CI_VERSION
value: "k8s/1.3.20"
value: "k8s/1.3.22"
resources:
limits:
memory: 200Mi
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ spec:
spec:
containers:
- name: cloudwatch-agent
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300036.0b573
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300037.1b602
#ports:
# - containerPort: 8125
# hostPort: 8125
Expand All @@ -127,7 +127,7 @@ spec:
fieldRef:
fieldPath: metadata.namespace
- name: CI_VERSION
value: "k8s/1.3.20"
value: "k8s/1.3.22"
# Please don't change the mountPath
volumeMounts:
- name: cwagentconfig
Expand Down Expand Up @@ -591,7 +591,7 @@ spec:
name: cluster-info
key: cluster.name
- name: CI_VERSION
value: "k8s/1.3.20"
value: "k8s/1.3.22"
- name: FLUENT_CONTAINER_TAIL_PARSER_TYPE
value: /^(?<time>.+) (?<stream>stdout|stderr) (?<logtag>[FP]) (?<log>.*)$/
resources:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ spec:
spec:
containers:
- name: cloudwatch-agent
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300036.0b573
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300037.1b602
imagePullPolicy: Always
resources:
limits:
Expand All @@ -410,7 +410,7 @@ spec:
# Please don't change below envs
env:
- name: CI_VERSION
value: "k8s/1.3.20"
value: "k8s/1.3.22"
- name: RUN_IN_AWS
value: "True"
# Please don't change the mountPath
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ spec:
spec:
containers:
- name: cloudwatch-agent
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300036.0b573
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300037.1b602
imagePullPolicy: Always
resources:
limits:
Expand All @@ -461,7 +461,7 @@ spec:
# Please don't change below envs
env:
- name: CI_VERSION
value: "k8s/1.3.20"
value: "k8s/1.3.22"
# Please don't change the mountPath
volumeMounts:
- name: prometheus-cwagentconfig
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ spec:
spec:
containers:
- name: cloudwatch-agent
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300036.0b573
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300037.1b602
imagePullPolicy: Always
resources:
limits:
Expand All @@ -408,7 +408,7 @@ spec:
# Please don't change below envs
env:
- name: CI_VERSION
value: "k8s/1.3.20"
value: "k8s/1.3.22"
# Please don't change the mountPath
volumeMounts:
- name: prometheus-cwagentconfig
Expand Down
8 changes: 4 additions & 4 deletions k8s-quickstart/cwagent-operator-rendered.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ spec:
apiVersion: v1
fieldPath: metadata.name
- name: CI_VERSION
value: "k8s/1.3.17"
value: "k8s/1.3.22"
resources:
limits:
cpu: 500m
Expand Down Expand Up @@ -754,7 +754,7 @@ spec:
apiVersion: v1
fieldPath: metadata.name
- name: CI_VERSION
value: "k8s/1.3.17"
value: "k8s/1.3.22"
resources:
limits:
cpu: 500m
Expand Down Expand Up @@ -839,7 +839,7 @@ metadata:
name: cloudwatch-agent
namespace: amazon-cloudwatch
spec:
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300037.0b583
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300037.1b602
mode: daemonset
nodeSelector:
kubernetes.io/os: linux
Expand Down Expand Up @@ -934,7 +934,7 @@ spec:
hostProcess: true
runAsUserName: "NT AUTHORITY\\System"
hostNetwork: true
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300037.0b583
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300037.1b602
mode: daemonset
serviceAccount: cloudwatch-agent
nodeSelector:
Expand Down
2 changes: 1 addition & 1 deletion k8s-quickstart/cwagent-version.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ metadata:
name: cloudwatch-agent
namespace: amazon-cloudwatch
spec:
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300037.0b583
image: public.ecr.aws/cloudwatch-agent/cloudwatch-agent:1.300037.1b602
mode: daemonset
nodeSelector:
kubernetes.io/os: linux
Expand Down