page-metrics-exporter: Add Chart?
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
---
|
||||
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
|
||||
@@ -0,0 +1,13 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: page-metrics-exporter
|
||||
labels: {{- include "common.app.labels" . | nindent 4 }}
|
||||
spec:
|
||||
selector: {{- include "common.app.labels" . | nindent 4 }}
|
||||
ports:
|
||||
- port: 8080
|
||||
protocol: TCP
|
||||
name: metrics
|
||||
type: ClusterIP
|
||||
|
||||
Reference in New Issue
Block a user