1
0
Fork 0
home-stack-kustomize/kustomize/bases/snmp-exporter/snmp-exporter-deployment.yaml

49 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: snmp-exporter
spec:
selector:
matchLabels:
app.kubernetes.io/name: snmp-exporter
template:
metadata:
labels:
app.kubernetes.io/name: snmp-exporter
spec:
containers:
- name: snmp-exporter
image: prom/snmp-exporter
resources:
requests:
memory: 128Mi
cpu: 100m
limits:
memory: 128Mi
cpu: 100m
ports:
- containerPort: 9116
name: http-metrics
volumeMounts:
- name: exporter-config
mountPath: /etc/snmp_exporter/snmp.yml
subPath: snmp.yml
volumes:
- name: exporter-config
configMap:
name: exporter-config
---
apiVersion: v1
kind: Service
metadata:
name: snmp-exporter
labels:
app.kubernetes.io/name: snmp-exporter
spec:
selector:
app.kubernetes.io/name: snmp-exporter
ports:
- name: http-metrics
port: 9116
targetPort: http-metrics