50 lines
1.2 KiB
YAML
50 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: helium-blockchain-exporter
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: helium-blockchain-exporter
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: helium-blockchain-exporter
|
|
spec:
|
|
containers:
|
|
- name: helium-blockchain-exporter
|
|
image: badjware/helium-blockchain-exporter
|
|
env:
|
|
- name: ACCOUNTS
|
|
valueFrom:
|
|
configMapKeyRef:
|
|
name: blackbox-exporter-config
|
|
key: ACCOUNTS
|
|
args:
|
|
- -accounts
|
|
- $(ACCOUNTS)
|
|
resources:
|
|
requests:
|
|
memory: 128Mi
|
|
cpu: 100m
|
|
limits:
|
|
memory: 128Mi
|
|
cpu: 500m
|
|
ports:
|
|
- containerPort: 9865
|
|
name: http-metrics
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: helium-blockchain-exporter
|
|
labels:
|
|
app.kubernetes.io/name: helium-blockchain-exporter
|
|
spec:
|
|
selector:
|
|
app.kubernetes.io/name: helium-blockchain-exporter
|
|
ports:
|
|
- name: http-metrics
|
|
port: 9865
|
|
targetPort: http-metrics
|