fix: ensure map keys are unique

This commit is contained in:
Jose Diaz-Gonzalez
2024-02-07 00:01:57 -05:00
committed by GitHub
parent e9986b5775
commit 03ae424a27

View File

@@ -1,11 +1,10 @@
---
controller: controller:
metrics: metrics:
enabled: true enabled: true
config: config:
# Print access log to file instead of stdout access-log-path: /var/log/nginx/access.log
# Separating acces logs from the rest error-log-path: /var/log/nginx/error.log
access-log-path: "/var/log/nginx/access.log"
error-log-path: "/var/log/nginx/error.log"
log-format-escape-json: "true" log-format-escape-json: "true"
extraVolumeMounts: extraVolumeMounts:
- name: data - name: data
@@ -17,30 +16,29 @@ controller:
- name: stream-accesslog - name: stream-accesslog
image: busybox image: busybox
args: args:
- /bin/sh - /bin/sh
- -c - -c
- tail -n+1 -F /var/log/nginx/access.log - tail -n+1 -F /var/log/nginx/access.log
imagePullPolicy: Always imagePullPolicy: Always
resources: {} resources: {}
terminationMessagePath: /dev/termination-log terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File terminationMessagePolicy: File
volumeMounts: volumeMounts:
- mountPath: /var/log/nginx - mountPath: /var/log/nginx
name: data name: data
extraContainers:
- name: stream-errorlog - name: stream-errorlog
image: busybox image: busybox
args: args:
- /bin/sh - /bin/sh
- -c - -c
- tail -n+1 -F /var/log/nginx/error.log - tail -n+1 -F /var/log/nginx/error.log
imagePullPolicy: Always imagePullPolicy: Always
resources: {} resources: {}
terminationMessagePath: /dev/termination-log terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File terminationMessagePolicy: File
volumeMounts: volumeMounts:
- mountPath: /var/log/nginx - mountPath: /var/log/nginx
name: data name: data
allowSnippetAnnotations: true allowSnippetAnnotations: true
podAnnotations: podAnnotations:
prometheus.io/path: /metrics prometheus.io/path: /metrics
@@ -48,12 +46,12 @@ controller:
prometheus.io/scheme: http prometheus.io/scheme: http
prometheus.io/scrape: "true" prometheus.io/scrape: "true"
tolerations: tolerations:
- key: "CriticalAddonsOnly" - key: CriticalAddonsOnly
operator: "Exists" operator: Exists
- key: "node-role.kubernetes.io/control-plane" - key: node-role.kubernetes.io/control-plane
operator: "Exists" operator: Exists
effect: "NoSchedule" effect: NoSchedule
- key: "node-role.kubernetes.io/master" - key: node-role.kubernetes.io/master
operator: "Exists" operator: Exists
effect: "NoSchedule" effect: NoSchedule
priorityClassName: "system-cluster-critical" priorityClassName: system-cluster-critical