page-metrics-exporter: Add Chart?

This commit is contained in:
PapaTutuWawa 2025-11-04 00:34:16 +01:00
parent d4e0c67b6d
commit 80e760f107
6 changed files with 99 additions and 0 deletions

View File

@ -0,0 +1,23 @@
# Patterns to ignore when building packages.
# This supports shell glob matching, relative path matching, and
# negation (prefixed with !). Only one pattern per line.
.DS_Store
# Common VCS dirs
.git/
.gitignore
.bzr/
.bzrignore
.hg/
.hgignore
.svn/
# Common backup files
*.swp
*.bak
*.tmp
*.orig
*~
# Various IDEs
.project
.idea/
*.tmproj
.vscode/

View File

@ -0,0 +1,6 @@
dependencies:
- name: common
repository: file://../common
version: 0.1.0
digest: sha256:636a65e9846bdff17cc4e65b0849061f783759a37aa51fb85ff6fd8ba5e68467
generated: "2025-11-03T23:07:59.058930685+01:00"

View File

@ -0,0 +1,11 @@
apiVersion: v2
name: page-metrics-exporter
description: A Helm chart for page-metrics-exporter
type: application
version: 0.1.0
appVersion: "1.16.0"
dependencies:
- name: common
version: 0.1.0
repository: file://../common

View File

@ -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

View File

@ -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

View File

@ -0,0 +1,2 @@
image: git.polynom.me/polynom.me/page-metrics
imageTag: latest