Skip to content

Commit

Permalink
feat: prevent dynatrace one-agent injection
Browse files Browse the repository at this point in the history
The extra resource consumption of the dynatrace one agent injection
into the containers causes problems with the default resource limits
and causes OOM kills. This prevents the injection.
  • Loading branch information
joshiste committed Dec 1, 2023
1 parent ca9915b commit 578e0b3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion charts/steadybit-extension-http/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: steadybit-extension-http
description: Steadybit action implementation to check HTTP endpoints.
version: 1.0.21
version: 1.0.22
appVersion: latest
home: https://www.steadybit.com/
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png
Expand Down
1 change: 1 addition & 0 deletions charts/steadybit-extension-http/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ spec:
{{- toYaml . | nindent 8 }}
{{- end }}
annotations:
oneagent.dynatrace.com/injection: "false"
{{- with .Values.podAnnotations }}
{{- toYaml . | nindent 8 }}
{{- end }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ manifest should match snapshot using podAnnotations and Labels:
template:
metadata:
annotations:
oneagent.dynatrace.com/injection: "false"
some-annotation: some-annotation-value
labels:
app.kubernetes.io/instance: RELEASE-NAME
Expand Down Expand Up @@ -89,7 +90,8 @@ manifest should match snapshot with TLS:
app.kubernetes.io/name: steadybit-extension-http
template:
metadata:
annotations: null
annotations:
oneagent.dynatrace.com/injection: "false"
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-http
Expand Down Expand Up @@ -171,7 +173,8 @@ manifest should match snapshot with extra env vars:
app.kubernetes.io/name: steadybit-extension-http
template:
metadata:
annotations: null
annotations:
oneagent.dynatrace.com/injection: "false"
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-http
Expand Down Expand Up @@ -250,7 +253,8 @@ manifest should match snapshot with extra labels:
app.kubernetes.io/name: steadybit-extension-http
template:
metadata:
annotations: null
annotations:
oneagent.dynatrace.com/injection: "false"
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-http
Expand Down Expand Up @@ -322,7 +326,8 @@ manifest should match snapshot with mutual TLS:
app.kubernetes.io/name: steadybit-extension-http
template:
metadata:
annotations: null
annotations:
oneagent.dynatrace.com/injection: "false"
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-http
Expand Down Expand Up @@ -413,7 +418,8 @@ manifest should match snapshot with mutual TLS using containerPaths:
app.kubernetes.io/name: steadybit-extension-http
template:
metadata:
annotations: null
annotations:
oneagent.dynatrace.com/injection: "false"
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-http
Expand Down Expand Up @@ -490,7 +496,8 @@ manifest should match snapshot with podSecurityContext:
app.kubernetes.io/name: steadybit-extension-http
template:
metadata:
annotations: null
annotations:
oneagent.dynatrace.com/injection: "false"
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-http
Expand Down Expand Up @@ -563,7 +570,8 @@ manifest should match snapshot with priority class:
app.kubernetes.io/name: steadybit-extension-http
template:
metadata:
annotations: null
annotations:
oneagent.dynatrace.com/injection: "false"
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-http
Expand Down Expand Up @@ -635,7 +643,8 @@ manifest should match snapshot without TLS:
app.kubernetes.io/name: steadybit-extension-http
template:
metadata:
annotations: null
annotations:
oneagent.dynatrace.com/injection: "false"
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-http
Expand Down

0 comments on commit 578e0b3

Please sign in to comment.