44 lines
1.1 KiB
YAML
44 lines
1.1 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: page-metrics-exporter
|
|
labels: {{- include "common.app.labels" . | nindent 4 }}
|
|
spec:
|
|
selector:
|
|
matchLabels: {{- include "common.app.labels" . | nindent 6 }}
|
|
template:
|
|
metadata:
|
|
annotations:
|
|
prometheus.io/scrape: "true"
|
|
prometheus.io/port: "8080"
|
|
labels: {{- include "common.app.labels" . | nindent 8 }}
|
|
spec:
|
|
containers:
|
|
- name: page-metrics-exporter
|
|
image: "{{ .Values.image }}:{{ .Values.imageTag }}"
|
|
args:
|
|
- --host
|
|
- 0.0.0.0
|
|
- --port
|
|
- "8080"
|
|
ports:
|
|
- containerPort: 8080
|
|
protocol: TCP
|
|
name: metrics
|
|
readinessProbe:
|
|
httpGet:
|
|
port: 8080
|
|
path: /metrics
|
|
livenessProbe:
|
|
httpGet:
|
|
port: 8080
|
|
path: /metrics
|
|
securityContext:
|
|
runAsNonRoot: true
|
|
runAsUser: 10005
|
|
runAsGroup: 10005
|
|
readOnlyRootFilesystem: true
|
|
capabilities:
|
|
drop:
|
|
- ALL |