Skip to content

Commit 36e3aee

Browse files
authored
Revert token changes for arc due to Telegraf bug (#1101)
* revert token changes for arc
1 parent f8ea86c commit 36e3aee

File tree

5 files changed

+1
-126
lines changed

5 files changed

+1
-126
lines changed

.trivyignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#telegraf MEDIUM
22
GHSA-2w8w-qhg4-f78j
3+
GHSA-fr2g-9hjm-wr23
34
CVE-2023-39325
45
CVE-2023-3978
56
CVE-2023-44487

charts/azuremonitor-containers/templates/ama-logs-daemonset-windows.yaml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,6 @@ spec:
102102
- name: SIDECAR_SCRAPING_ENABLED
103103
value: {{ .Values.amalogs.sidecarscraping | quote }}
104104
volumeMounts:
105-
- name: kube-api-access
106-
mountPath: /var/run/secrets/kubernetes.io/serviceaccount
107-
readOnly: true
108105
- mountPath: C:\ProgramData\docker\containers
109106
name: docker-windows-containers
110107
readOnly: true
@@ -139,23 +136,6 @@ spec:
139136
{{- end }}
140137
{{- end }}
141138
volumes:
142-
- name: kube-api-access
143-
projected:
144-
sources:
145-
- serviceAccountToken:
146-
path: token
147-
expirationSeconds: 3600
148-
- configMap:
149-
items:
150-
- key: ca.crt
151-
path: ca.crt
152-
name: kube-root-ca.crt
153-
- downwardAPI:
154-
items:
155-
- fieldRef:
156-
apiVersion: v1
157-
fieldPath: metadata.namespace
158-
path: namespace
159139
- name: docker-windows-kuberenetes-container-logs
160140
hostPath:
161141
path: C:\var

charts/azuremonitor-containers/templates/ama-logs-daemonset.yaml

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,6 @@ spec:
137137
- containerPort: 25224
138138
protocol: UDP
139139
volumeMounts:
140-
- name: kube-api-access
141-
mountPath: /var/run/secrets/kubernetes.io/serviceaccount
142-
readOnly: true
143140
- mountPath: /hostfs
144141
name: host-root
145142
readOnly: true
@@ -232,9 +229,6 @@ spec:
232229
securityContext:
233230
privileged: true
234231
volumeMounts:
235-
- name: kube-api-access
236-
mountPath: /var/run/secrets/kubernetes.io/serviceaccount
237-
readOnly: true
238232
- mountPath: /etc/kubernetes/host
239233
name: azure-json-path
240234
- mountPath: /etc/ama-logs-secret
@@ -275,23 +269,6 @@ spec:
275269
{{- end }}
276270
{{- end }}
277271
volumes:
278-
- name: kube-api-access
279-
projected:
280-
sources:
281-
- serviceAccountToken:
282-
path: token
283-
expirationSeconds: 3600
284-
- configMap:
285-
items:
286-
- key: ca.crt
287-
path: ca.crt
288-
name: kube-root-ca.crt
289-
- downwardAPI:
290-
items:
291-
- fieldRef:
292-
apiVersion: v1
293-
fieldPath: metadata.namespace
294-
path: namespace
295272
- name: host-root
296273
hostPath:
297274
path: /

charts/azuremonitor-containers/templates/ama-logs-deployment.yaml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,6 @@ spec:
128128
- containerPort: 25224
129129
protocol: UDP
130130
volumeMounts:
131-
- name: kube-api-access
132-
mountPath: /var/run/secrets/kubernetes.io/serviceaccount
133-
readOnly: true
134131
- mountPath: /var/run/host
135132
name: docker-sock
136133
- mountPath: /var/log
@@ -185,23 +182,6 @@ spec:
185182
{{- end }}
186183
{{- end }}
187184
volumes:
188-
- name: kube-api-access
189-
projected:
190-
sources:
191-
- serviceAccountToken:
192-
path: token
193-
expirationSeconds: 3600
194-
- configMap:
195-
items:
196-
- key: ca.crt
197-
path: ca.crt
198-
name: kube-root-ca.crt
199-
- downwardAPI:
200-
items:
201-
- fieldRef:
202-
apiVersion: v1
203-
fieldPath: metadata.namespace
204-
path: namespace
205185
- name: docker-sock
206186
hostPath:
207187
path: /var/run

kubernetes/ama-logs.yaml

Lines changed: 0 additions & 63 deletions
Original file line numberDiff line numberDiff line change
@@ -458,9 +458,6 @@ spec:
458458
hostPort: 28330
459459
protocol: TCP
460460
volumeMounts:
461-
- name: kube-api-access
462-
mountPath: /var/run/secrets/kubernetes.io/serviceaccount
463-
readOnly: true
464461
- mountPath: /var/run/mdsd-PrometheusSidecar
465462
name: mdsd-prometheus-sock
466463
- mountPath: /hostfs
@@ -556,9 +553,6 @@ spec:
556553
securityContext:
557554
privileged: true
558555
volumeMounts:
559-
- name: kube-api-access
560-
mountPath: /var/run/secrets/kubernetes.io/serviceaccount
561-
readOnly: true
562556
- mountPath: /var/run/mdsd-PrometheusSidecar
563557
name: mdsd-prometheus-sock
564558
- mountPath: /etc/kubernetes/host
@@ -609,23 +603,6 @@ spec:
609603
- operator: "Exists"
610604
effect: "PreferNoSchedule"
611605
volumes:
612-
- name: kube-api-access
613-
projected:
614-
sources:
615-
- serviceAccountToken:
616-
path: token
617-
expirationSeconds: 3600
618-
- configMap:
619-
items:
620-
- key: ca.crt
621-
path: ca.crt
622-
name: kube-root-ca.crt
623-
- downwardAPI:
624-
items:
625-
- fieldRef:
626-
apiVersion: v1
627-
fieldPath: metadata.namespace
628-
path: namespace
629606
- name: mdsd-prometheus-sock
630607
emptyDir: {}
631608
- name: host-root
@@ -833,9 +810,6 @@ spec:
833810
- containerPort: 25224
834811
protocol: UDP
835812
volumeMounts:
836-
- name: kube-api-access
837-
mountPath: /var/run/secrets/kubernetes.io/serviceaccount
838-
readOnly: true
839813
- mountPath: /var/run/host
840814
name: docker-sock
841815
- mountPath: /var/log
@@ -905,23 +879,6 @@ spec:
905879
- operator: "Exists"
906880
effect: "PreferNoSchedule"
907881
volumes:
908-
- name: kube-api-access
909-
projected:
910-
sources:
911-
- serviceAccountToken:
912-
path: token
913-
expirationSeconds: 3600
914-
- configMap:
915-
items:
916-
- key: ca.crt
917-
path: ca.crt
918-
name: kube-root-ca.crt
919-
- downwardAPI:
920-
items:
921-
- fieldRef:
922-
apiVersion: v1
923-
fieldPath: metadata.namespace
924-
path: namespace
925882
- name: docker-sock
926883
hostPath:
927884
path: /var/run
@@ -1069,9 +1026,6 @@ spec:
10691026
# - name: USING_AAD_MSI_AUTH
10701027
# value: "true"
10711028
volumeMounts:
1072-
- name: kube-api-access
1073-
mountPath: /var/run/secrets/kubernetes.io/serviceaccount
1074-
readOnly: true
10751029
- mountPath: C:\ProgramData\docker\containers
10761030
name: docker-windows-containers
10771031
readOnly: true
@@ -1131,23 +1085,6 @@ spec:
11311085
- operator: "Exists"
11321086
effect: PreferNoSchedule
11331087
volumes:
1134-
- name: kube-api-access
1135-
projected:
1136-
sources:
1137-
- serviceAccountToken:
1138-
path: token
1139-
expirationSeconds: 3600
1140-
- configMap:
1141-
items:
1142-
- key: ca.crt
1143-
path: ca.crt
1144-
name: kube-root-ca.crt
1145-
- downwardAPI:
1146-
items:
1147-
- fieldRef:
1148-
apiVersion: v1
1149-
fieldPath: metadata.namespace
1150-
path: namespace
11511088
- name: docker-windows-kuberenetes-container-logs
11521089
hostPath:
11531090
path: C:\var

0 commit comments

Comments
 (0)