43 lines
929 B
YAML
43 lines
929 B
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: prometheus-pushgateway
|
|
name: prometheus-pushgateway
|
|
namespace: monitoring
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: prometheus-pushgateway
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: prometheus-pushgateway
|
|
spec:
|
|
containers:
|
|
- image: prom/pushgateway:v1.1.0
|
|
livenessProbe:
|
|
httpGet:
|
|
path: /#/status
|
|
port: 9091
|
|
initialDelaySeconds: 10
|
|
timeoutSeconds: 10
|
|
name: pushgateway
|
|
ports:
|
|
- containerPort: 9091
|
|
name: metrics
|
|
readinessProbe:
|
|
httpGet:
|
|
path: /#/status
|
|
port: 9091
|
|
initialDelaySeconds: 10
|
|
timeoutSeconds: 10
|
|
resources:
|
|
limits:
|
|
cpu: 50m
|
|
memory: 100Mi
|
|
requests:
|
|
cpu: 50m
|
|
memory: 100Mi
|