Initial commit: k3s GitOps manifests with ArgoCD App-of-Apps
This commit is contained in:
62
manifests/llama/gpu-exporter.yaml
Normal file
62
manifests/llama/gpu-exporter.yaml
Normal file
@@ -0,0 +1,62 @@
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
name: radeon-exporter
|
||||
namespace: llama
|
||||
labels:
|
||||
app: radeon-exporter
|
||||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
app: radeon-exporter
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: radeon-exporter
|
||||
spec:
|
||||
nodeSelector:
|
||||
gpu: amd
|
||||
containers:
|
||||
- name: radeon-exporter
|
||||
image: kmulvey/radeon_exporter:latest
|
||||
imagePullPolicy: IfNotPresent
|
||||
ports:
|
||||
- name: metrics
|
||||
containerPort: 9200
|
||||
securityContext:
|
||||
privileged: true
|
||||
volumeMounts:
|
||||
- name: sys
|
||||
mountPath: /sys
|
||||
readOnly: true
|
||||
- name: dri
|
||||
mountPath: /dev/dri
|
||||
readOnly: true
|
||||
volumes:
|
||||
- name: sys
|
||||
hostPath:
|
||||
path: /sys
|
||||
type: Directory
|
||||
- name: dri
|
||||
hostPath:
|
||||
path: /dev/dri
|
||||
type: Directory
|
||||
---
|
||||
apiVersion: monitoring.coreos.com/v1
|
||||
kind: PodMonitor
|
||||
metadata:
|
||||
name: radeon-exporter
|
||||
namespace: llama
|
||||
labels:
|
||||
monitoring: primary
|
||||
spec:
|
||||
namespaceSelector:
|
||||
matchNames:
|
||||
- llama
|
||||
selector:
|
||||
matchLabels:
|
||||
app: radeon-exporter
|
||||
podMetricsEndpoints:
|
||||
- port: metrics
|
||||
path: /metrics
|
||||
interval: 15s
|
||||
Reference in New Issue
Block a user