Files
ghtracker/deploy/kubernetes/deployment.yaml
T
lukaszraczylo 5313b56774 feat: add GitHub repository dashboard with Prometheus metrics
ghtracker authenticates as a GitHub App and scans a configured list of repositories on a schedule. It serves a dashboard, a JSON state endpoint, a health probe and Prometheus metrics.

The dashboard lists only items that need attention: failing workflows, pull requests that wait too long or fail their checks, stale issues and projects that failed to scan. It has search, dynamic filters and a button that rescans on demand. The Vue app is embedded in the Go binary.

The client protects the GitHub rate limit with conditional requests, a request reserve and Retry-After handling.
2026-10-02 04:28:52 +01:00

53 lines
1.5 KiB
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: ghtracker
spec:
replicas: 1 # one replica: each replica refreshes on its own and spends GitHub API budget
strategy:
type: Recreate
selector:
matchLabels:
app.kubernetes.io/name: ghtracker
template:
metadata:
labels:
app.kubernetes.io/name: ghtracker
spec:
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
containers:
- name: ghtracker
image: ghcr.io/lukaszraczylo/ghtracker:latest # replace with the image you push
args: ['-config', '/config/config.yaml']
envFrom:
- secretRef:
name: ghtracker-github-app
ports:
- name: http
containerPort: 8080
readinessProbe:
httpGet: { path: /healthz, port: http }
periodSeconds: 10
livenessProbe:
httpGet: { path: /metrics, port: http }
periodSeconds: 30
resources:
requests: { cpu: 10m, memory: 32Mi }
limits: { memory: 128Mi }
securityContext:
allowPrivilegeEscalation: false
readOnlyRootFilesystem: true
capabilities:
drop: [ALL]
volumeMounts:
- name: config
mountPath: /config
readOnly: true
volumes:
- name: config
configMap:
name: ghtracker