Files
kube/clusters/base/apps/map_monitor/helmrelease.yaml
T
2026-10-26 14:36:42 +03:00

58 lines
1.3 KiB
YAML

apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: map-monitor
namespace: iot
spec:
interval: 30m
chartRef:
kind: OCIRepository
name: map-monitor
driftDetection:
mode: enabled
values:
defaultPodOptions:
securityContext:
runAsUser: 65534
runAsGroup: 65534
runAsNonRoot: true
controllers:
map-monitor:
containers:
app:
image:
repository: python
tag: 3.12-slim
command:
- sh
- -c
- pip install --no-cache-dir --target /tmp/site -r /app/requirements.txt && exec python /app/map_mqtt.py
env:
PYTHONPATH: /tmp/site
PYTHONUNBUFFERED: "1"
PYTHONDONTWRITEBYTECODE: "1"
PIP_DISABLE_PIP_VERSION_CHECK: "1"
HOME: /tmp
envFrom:
- secretRef:
name: map-monitor-secrets
resources:
requests:
cpu: 10m
memory: 32Mi
limits:
memory: 128Mi
persistence:
code:
type: configMap
name: map-monitor-code
globalMounts:
- path: /app
readOnly: true
tmp:
type: emptyDir
globalMounts:
- path: /tmp