2025-05-21 10:00:54 +03:00

31 lines
826 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: gitea-exporter
labels:
app: gitea-exporter
spec:
replicas: {{ .Values.replicaCount }}
selector:
matchLabels:
app: gitea-exporter
template:
metadata:
labels:
app: gitea-exporter
spec:
containers:
- name: exporter
image: "{{ .Values.image.repository }}:{{ .Values.image.tag }}"
imagePullPolicy: {{ .Values.image.pullPolicy }}
ports:
- containerPort: {{ .Values.service.port }}
name: metrics
env:
- name: GITEA_BASE_URL
value: {{ .Values.gitea.baseUrl | quote }}
- name: GITEA_TOKEN
valueFrom:
secretKeyRef:
name: gitea-exporter-secret
key: token