64 lines
1.4 KiB
YAML
64 lines
1.4 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
|
|
install:
|
|
remediation:
|
|
retries: -1
|
|
upgrade:
|
|
remediation:
|
|
retries: 5
|
|
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
|