[fea] 데몬셋 에이전트 결합

:Why/What:
- node-exporter와 topology-agent가 같이 배포되도록 수정
- node-exporter의 컨테이너명을 node-agent로 수정
- node-exporter scrape rule 명칭을 agent로 수정

:Tasks:
[CLOUD-19283] Topology Agent 와 node exporter 통합
<https://app.clickup.com/t/25540965/CLOUD-19283>
This commit is contained in:
dongwoo
2023-07-25 17:52:36 +09:00
parent 6709b48ffd
commit 03cfcc1e1a
3 changed files with 39 additions and 97 deletions

View File

@@ -1,96 +0,0 @@
apiVersion: v1
kind: Service
metadata:
annotations:
prometheus.io/scrape: 'true'
labels:
app: node-exporter
name: node-exporter
name: node-exporter
namespace: imxc
spec:
clusterIP: None
ports:
- name: scrape
port: 9100
protocol: TCP
selector:
app: node-exporter
type: ClusterIP
---
{{- if semverCompare ">=1.16-0" .Capabilities.KubeVersion.GitVersion }}
apiVersion: apps/v1
{{- else }}
apiVersion: extensions/v1beta1
{{- end }}
kind: DaemonSet
metadata:
name: node-exporter
namespace: imxc
spec:
{{- if semverCompare ">=1.16-0" .Capabilities.KubeVersion.GitVersion }}
selector:
matchLabels:
app: node-exporter
{{- end }}
template:
metadata:
labels:
app: node-exporter
name: node-exporter
spec:
tolerations:
- effect: NoSchedule
operator: Exists
- effect: NoExecute
operator: Exists
containers:
- image: {{ .Values.global.IMXC_IN_REGISTRY }}/node-exporter
name: node-exporter
resources:
limits:
cpu: 250m
memory: 180Mi
requests:
cpu: 125m
memory: 90Mi
ports:
- containerPort: 9100
hostPort: 9100
name: scrape
args:
- --path.procfs=/host/proc
- --path.sysfs=/host/sys
- --path.rootfs=/host/root
- --collector.filesystem.ignored-mount-points=^/(dev|proc|sys|run|var/lib/docker/.+|var/lib/kubelet/pods/.+)($|/)
- --collector.tcpstat
# --log.level=debug
env:
- name: GOMAXPROCS
value: "1"
volumeMounts:
- mountPath: /host/proc
name: proc
readOnly: false
- mountPath: /host/sys
name: sys
readOnly: false
- mountPath: /host/root
mountPropagation: HostToContainer
name: root
readOnly: true
hostNetwork: true
hostPID: true
securityContext:
runAsNonRoot: true
runAsUser: 65534
volumes:
- hostPath:
path: /proc
name: proc
- hostPath:
path: /sys
name: sys
- hostPath:
path: /
name: root