Added a BUNCH of configs.
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: snmp-exporter-manual
|
||||
namespace: monitoring
|
||||
spec:
|
||||
replicas: 1
|
||||
selector:
|
||||
matchLabels:
|
||||
app: snmp-exporter-manual
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app: snmp-exporter-manual
|
||||
spec:
|
||||
containers:
|
||||
- name: snmp-exporter
|
||||
image: quay.io/prometheus/snmp-exporter:v0.30.1
|
||||
args:
|
||||
- --config.file=/etc/snmp_exporter/snmp.yml
|
||||
ports:
|
||||
- name: http
|
||||
containerPort: 9116
|
||||
volumeMounts:
|
||||
- name: snmp-config
|
||||
mountPath: /etc/snmp_exporter/snmp.yml
|
||||
subPath: snmp.yml
|
||||
volumes:
|
||||
- name: snmp-config
|
||||
configMap:
|
||||
name: snmp-exporter-config
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: snmp-exporter-manual
|
||||
namespace: monitoring
|
||||
spec:
|
||||
selector:
|
||||
app: snmp-exporter-manual
|
||||
ports:
|
||||
- name: http
|
||||
port: 9116
|
||||
targetPort: 9116
|
||||
Reference in New Issue
Block a user