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 538d3ad commit 998db9b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 10 deletions.
2 changes: 1 addition & 1 deletion charts/steadybit-extension-prometheus/Chart.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v2
name: steadybit-extension-prometheus
description: Steadybit Prometheus extension Helm chart for Kubernetes.
version: 1.4.22
version: 1.4.23
appVersion: latest
home: https://www.steadybit.com/
icon: https://steadybit-website-assets.s3.amazonaws.com/logo-symbol-transparent.png
Expand Down
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 Expand Up @@ -123,4 +124,4 @@ spec:
{{- with .Values.topologySpreadConstraints }}
topologySpreadConstraints:
{{- toYaml . | nindent 8 }}
{{- end }}
{{- end }}
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 @@ -93,7 +94,8 @@ manifest should match snapshot with TLS:
app.kubernetes.io/name: steadybit-extension-prometheus
template:
metadata:
annotations: null
annotations:
oneagent.dynatrace.com/injection: "false"
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
Expand Down Expand Up @@ -179,7 +181,8 @@ manifest should match snapshot with extra env vars:
app.kubernetes.io/name: steadybit-extension-prometheus
template:
metadata:
annotations: null
annotations:
oneagent.dynatrace.com/injection: "false"
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
Expand Down Expand Up @@ -262,7 +265,8 @@ manifest should match snapshot with extra labels:
app.kubernetes.io/name: steadybit-extension-prometheus
template:
metadata:
annotations: null
annotations:
oneagent.dynatrace.com/injection: "false"
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
Expand Down Expand Up @@ -338,7 +342,8 @@ manifest should match snapshot with mutual TLS:
app.kubernetes.io/name: steadybit-extension-prometheus
template:
metadata:
annotations: null
annotations:
oneagent.dynatrace.com/injection: "false"
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
Expand Down Expand Up @@ -433,7 +438,8 @@ manifest should match snapshot with mutual TLS using containerPaths:
app.kubernetes.io/name: steadybit-extension-prometheus
template:
metadata:
annotations: null
annotations:
oneagent.dynatrace.com/injection: "false"
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
Expand Down Expand Up @@ -514,7 +520,8 @@ manifest should match snapshot with podSecurityContext:
app.kubernetes.io/name: steadybit-extension-prometheus
template:
metadata:
annotations: null
annotations:
oneagent.dynatrace.com/injection: "false"
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
Expand Down Expand Up @@ -591,7 +598,8 @@ manifest should match snapshot with priority class:
app.kubernetes.io/name: steadybit-extension-prometheus
template:
metadata:
annotations: null
annotations:
oneagent.dynatrace.com/injection: "false"
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
Expand Down Expand Up @@ -667,7 +675,8 @@ manifest should match snapshot without TLS:
app.kubernetes.io/name: steadybit-extension-prometheus
template:
metadata:
annotations: null
annotations:
oneagent.dynatrace.com/injection: "false"
labels:
app.kubernetes.io/instance: RELEASE-NAME
app.kubernetes.io/name: steadybit-extension-prometheus
Expand Down

0 comments on commit 998db9b

Please sign in to comment.