1
0
Fork 0
home-stack-kustomize/kustomize/bases/blackbox-exporter/blackbox-exporter-deploymen...

50 lines
1.1 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: blackbox-exporter
spec:
selector:
matchLabels:
app.kubernetes.io/name: blackbox-exporter
template:
metadata:
labels:
app.kubernetes.io/name: blackbox-exporter
spec:
securityContext:
sysctls:
- name: net.ipv4.ping_group_range
value: "0 2147483647"
containers:
- name: blackbox-exporter
image: prom/blackbox-exporter
resources:
requests:
memory: 128Mi
cpu: 100m
limits:
memory: 128Mi
cpu: 100m
securityContext:
allowPrivilegeEscalation: true
capabilities:
add:
- NET_RAW
ports:
- containerPort: 9115
name: http-metrics
---
apiVersion: v1
kind: Service
metadata:
name: blackbox-exporter
labels:
app.kubernetes.io/name: blackbox-exporter
spec:
selector:
app.kubernetes.io/name: blackbox-exporter
ports:
- name: http-metrics
port: 9115
targetPort: http-metrics