Skip to content

Commit

Permalink
fixed indentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Paramadon committed Jul 2, 2024
1 parent d35be6d commit ff5a242
Show file tree
Hide file tree
Showing 3 changed files with 112 additions and 112 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 %).
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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",
Expand Down

0 comments on commit ff5a242

Please sign in to comment.