#that one connects to proxmox and provides metrics that can then be scraped apiVersion: apps/v1 kind: Deployment metadata: name: pve-exporter namespace: vm spec: replicas: 1 selector: matchLabels: app: pve-exporter template: metadata: labels: app: pve-exporter spec: containers: - name: pve-exporter image: ghcr.io/prometheus-pve/prometheus-pve-exporter:latest args: - --config.file - /etc/pve-exporter/pve.yml ports: - name: http containerPort: 9221 volumeMounts: - name: config mountPath: /etc/pve-exporter readOnly: true volumes: - name: config secret: secretName: pve-exporter-config --- apiVersion: v1 kind: Service metadata: name: pve-exporter namespace: vm spec: selector: app: pve-exporter ports: - name: http port: 9221 targetPort: 9221