From ff5a24219413151cb22f158830bc833b716f16c0 Mon Sep 17 00:00:00 2001 From: Paramadon Date: Tue, 2 Jul 2024 15:07:12 -0400 Subject: [PATCH] fixed indentation --- .../linux/dcgm-exporter-daemonset.yaml | 54 ++++---- .../templates/linux/fluent-bit-daemonset.yaml | 128 +++++++++--------- .../linux/neuron-monitor-daemonset.yaml | 42 +++--- 3 files changed, 112 insertions(+), 112 deletions(-) diff --git a/charts/amazon-cloudwatch-observability/templates/linux/dcgm-exporter-daemonset.yaml b/charts/amazon-cloudwatch-observability/templates/linux/dcgm-exporter-daemonset.yaml index b9adaed..f812bb0 100644 --- a/charts/amazon-cloudwatch-observability/templates/linux/dcgm-exporter-daemonset.yaml +++ b/charts/amazon-cloudwatch-observability/templates/linux/dcgm-exporter-daemonset.yaml @@ -31,36 +31,36 @@ spec: cpu: 500m memory: 250Mi env: - - name: "DCGM_EXPORTER_KUBERNETES" - value: "true" - - name: "DCGM_EXPORTER_LISTEN" - value: "{{ .Values.dcgmExporter.service.address }}" - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: spec.nodeName + - name: "DCGM_EXPORTER_KUBERNETES" + value: "true" + - name: "DCGM_EXPORTER_LISTEN" + value: "{{ .Values.dcgmExporter.service.address }}" + - name: NODE_NAME + valueFrom: + fieldRef: + fieldPath: spec.nodeName ports: - - name: "metrics" - port: {{ .Values.dcgmExporter.service.port }} + - name: "metrics" + port: {{ .Values.dcgmExporter.service.port }} volumeMounts: - - name: "pod-gpu-resources" - readOnly: true - mountPath: "/var/lib/kubelet/pod-resources" - - mountPath: /etc/amazon-cloudwatch-observability-dcgm-cert - name: dcgmtls - readOnly: true + - name: "pod-gpu-resources" + readOnly: true + mountPath: "/var/lib/kubelet/pod-resources" + - mountPath: /etc/amazon-cloudwatch-observability-dcgm-cert + name: dcgmtls + readOnly: true volumes: - - name: dcgmtls - secret: - secretName: amazon-cloudwatch-observability-agent-cert - items: - - key: tls.crt - path: server.crt - - key: tls.key - path: server.key - - name: "pod-gpu-resources" - hostPath: - path: /var/lib/kubelet/pod-resources + - name: dcgmtls + secret: + secretName: amazon-cloudwatch-observability-agent-cert + items: + - key: tls.crt + path: server.crt + - key: tls.key + path: server.key + - name: "pod-gpu-resources" + hostPath: + path: /var/lib/kubelet/pod-resources metricsConfig: | DCGM_FI_DEV_GPU_UTIL, gauge, GPU utilization (in %). DCGM_FI_DEV_MEM_COPY_UTIL, gauge, Memory utilization (in %). diff --git a/charts/amazon-cloudwatch-observability/templates/linux/fluent-bit-daemonset.yaml b/charts/amazon-cloudwatch-observability/templates/linux/fluent-bit-daemonset.yaml index 8afbafb..79d3698 100644 --- a/charts/amazon-cloudwatch-observability/templates/linux/fluent-bit-daemonset.yaml +++ b/charts/amazon-cloudwatch-observability/templates/linux/fluent-bit-daemonset.yaml @@ -24,76 +24,76 @@ spec: kubernetes.io/cluster-service: "true" spec: containers: - - name: fluent-bit - image: {{ template "fluent-bit.image" . }} - imagePullPolicy: Always - env: - - name: AWS_REGION - value: {{ .Values.region }} - - name: CLUSTER_NAME - value: {{ .Values.clusterName | quote }} - - name: READ_FROM_HEAD - value: "Off" - - name: READ_FROM_TAIL - value: "On" - - name: HOST_NAME - valueFrom: - fieldRef: - fieldPath: spec.nodeName - - name: HOSTNAME - valueFrom: - fieldRef: - apiVersion: v1 - fieldPath: metadata.name - - name: CI_VERSION - value: "k8s/1.3.17" - resources: - limits: - cpu: 500m - memory: 250Mi - requests: - cpu: 50m - memory: 25Mi - volumeMounts: - # Please don't change below read-only permissions - - name: fluentbitstate - mountPath: /var/fluent-bit/state - - name: varlog - mountPath: /var/log - readOnly: true - - name: varlibdockercontainers - mountPath: /var/lib/docker/containers - readOnly: true - - name: fluent-bit-config - mountPath: /fluent-bit/etc/ - - name: runlogjournal - mountPath: /run/log/journal - readOnly: true - - name: dmesg - mountPath: /var/log/dmesg - readOnly: true - terminationGracePeriodSeconds: 10 - hostNetwork: true - dnsPolicy: ClusterFirstWithHostNet - volumes: + - name: fluent-bit + image: {{ template "fluent-bit.image" . }} + imagePullPolicy: Always + env: + - name: AWS_REGION + value: {{ .Values.region }} + - name: CLUSTER_NAME + value: {{ .Values.clusterName | quote }} + - name: READ_FROM_HEAD + value: "Off" + - name: READ_FROM_TAIL + value: "On" + - name: HOST_NAME + valueFrom: + fieldRef: + fieldPath: spec.nodeName + - name: HOSTNAME + valueFrom: + fieldRef: + apiVersion: v1 + fieldPath: metadata.name + - name: CI_VERSION + value: "k8s/1.3.17" + resources: + limits: + cpu: 500m + memory: 250Mi + requests: + cpu: 50m + memory: 25Mi + volumeMounts: + # Please don't change below read-only permissions - name: fluentbitstate - hostPath: - path: /var/fluent-bit/state + mountPath: /var/fluent-bit/state - name: varlog - hostPath: - path: /var/log + mountPath: /var/log + readOnly: true - name: varlibdockercontainers - hostPath: - path: /var/lib/docker/containers + mountPath: /var/lib/docker/containers + readOnly: true - name: fluent-bit-config - configMap: - name: fluent-bit-config + mountPath: /fluent-bit/etc/ - name: runlogjournal - hostPath: - path: /run/log/journal + mountPath: /run/log/journal + readOnly: true - name: dmesg - hostPath: - path: /var/log/dmesg + mountPath: /var/log/dmesg + readOnly: true + terminationGracePeriodSeconds: 10 + hostNetwork: true + dnsPolicy: ClusterFirstWithHostNet + volumes: + - name: fluentbitstate + hostPath: + path: /var/fluent-bit/state + - name: varlog + hostPath: + path: /var/log + - name: varlibdockercontainers + hostPath: + path: /var/lib/docker/containers + - name: fluent-bit-config + configMap: + name: fluent-bit-config + - name: runlogjournal + hostPath: + path: /run/log/journal + - name: dmesg + hostPath: + path: /var/log/dmesg serviceAccountName: {{ template "cloudwatch-agent.serviceAccountName" . }} affinity: nodeAffinity: diff --git a/charts/amazon-cloudwatch-observability/templates/linux/neuron-monitor-daemonset.yaml b/charts/amazon-cloudwatch-observability/templates/linux/neuron-monitor-daemonset.yaml index c48a91c..686a608 100644 --- a/charts/amazon-cloudwatch-observability/templates/linux/neuron-monitor-daemonset.yaml +++ b/charts/amazon-cloudwatch-observability/templates/linux/neuron-monitor-daemonset.yaml @@ -33,17 +33,17 @@ spec: cpu: 256m memory: 128Mi env: - - name: NODE_NAME - valueFrom: - fieldRef: - fieldPath: spec.nodeName - - name: PATH - value: /usr/local/bin:/usr/bin:/bin:/opt/aws/neuron/bin - - name: GOMEMLIMIT - value: 160MiB + - name: NODE_NAME + valueFrom: + fieldRef: + fieldPath: spec.nodeName + - name: PATH + value: /usr/local/bin:/usr/bin:/bin:/opt/aws/neuron/bin + - name: GOMEMLIMIT + value: 160MiB ports: - - name: "metrics" - port: {{ .Values.neuronMonitor.service.port }} + - name: "metrics" + port: {{ .Values.neuronMonitor.service.port }} command: - "/opt/bin/entrypoint.sh" args: @@ -53,18 +53,18 @@ spec: securityContext: privileged: true volumeMounts: - - mountPath: /etc/amazon-cloudwatch-observability-neuron-cert/ - name: neurontls - readOnly: true + - mountPath: /etc/amazon-cloudwatch-observability-neuron-cert/ + name: neurontls + readOnly: true volumes: - - name: neurontls - secret: - secretName: amazon-cloudwatch-observability-agent-cert - items: - - key: tls.crt - path: server.crt - - key: tls.key - path: server.key + - name: neurontls + secret: + secretName: amazon-cloudwatch-observability-agent-cert + items: + - key: tls.crt + path: server.crt + - key: tls.key + path: server.key monitorConfig: | { "period": "5s",