add infra app prometheus-node-exporter
This commit is contained in:
@@ -10,4 +10,5 @@ resources:
|
||||
- ./postgresql/postgresql.yaml
|
||||
- ./prometheus/prometheus.yaml
|
||||
- ./prometheus-alertmanager/prometheus-alertmanager.yaml
|
||||
- ./prometheus-node-exporter/prometheus-node-exporter.yaml
|
||||
- ./repositories/repositories.yaml
|
||||
@@ -0,0 +1,45 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: prometheus-node-exporter
|
||||
namespace: prometheus
|
||||
labels:
|
||||
app: prometheus-node-exporter
|
||||
spec:
|
||||
replicas: 3
|
||||
selector:
|
||||
matchLabels:
|
||||
app: prometheus-node-exporter
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: prometheus-node-exporter
|
||||
spec:
|
||||
topologySpreadConstraints:
|
||||
- maxSkew: 1
|
||||
topologyKey: kubernetes.io/hostname
|
||||
whenUnsatisfiable: DoNotSchedule
|
||||
labelSelector:
|
||||
matchLabels:
|
||||
app: prometheus-node-exporter
|
||||
securityContext:
|
||||
runAsUser: 0
|
||||
runAsGroup: 0
|
||||
containers:
|
||||
- name: prometheus-node-exporter
|
||||
image: prom/node-exporter
|
||||
args:
|
||||
- "--net=\"host\""
|
||||
- "--pid=\"host\""
|
||||
- "--path.rootfs=/host"
|
||||
- "--cap-add=SYS_TIME"
|
||||
volumeMounts:
|
||||
- name: node-volume
|
||||
mountPath: /host
|
||||
readOnly: true
|
||||
mountPropagation: HostToContainer
|
||||
volumes:
|
||||
- name: node-volume
|
||||
hostPath:
|
||||
path: /
|
||||
type: Directory
|
||||
@@ -0,0 +1,18 @@
|
||||
apiVersion: kustomize.toolkit.fluxcd.io/v1
|
||||
kind: Kustomization
|
||||
metadata:
|
||||
name: prometheus-node-exporter
|
||||
namespace: prometheus
|
||||
spec:
|
||||
interval: 10m
|
||||
timeout: 1m30s
|
||||
retryInterval: 30s
|
||||
path: ./kubernetes/infrastructure/prometheus-node-exporter/app
|
||||
prune: true
|
||||
sourceRef:
|
||||
kind: GitRepository
|
||||
namespace: flux-system
|
||||
name: flux-system
|
||||
dependsOn:
|
||||
- name: namespaces
|
||||
namespace: flux-system
|
||||
Reference in New Issue
Block a user