fix(deploy): use matomo.php for liveness/readiness probes
/index.php returns 302 after tables are created (installer redirect), which fails k8s HTTP probes. /matomo.php is the tracker endpoint and always returns 200 regardless of installation state. Also add timeoutSeconds: 5 since PHP startup can exceed the 1s default. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -40,6 +40,13 @@ spec:
|
|||||||
secretKeyRef:
|
secretKeyRef:
|
||||||
name: matomo-secret
|
name: matomo-secret
|
||||||
key: MYSQL_PASSWORD
|
key: MYSQL_PASSWORD
|
||||||
|
# Traefik terminates SSL; tell Matomo to trust X-Forwarded-* headers
|
||||||
|
- name: MATOMO_GENERAL_ASSUME_SECURE_PROTOCOL
|
||||||
|
value: "1"
|
||||||
|
- name: MATOMO_GENERAL_PROXY_CLIENT_HEADERS
|
||||||
|
value: HTTP_X_FORWARDED_FOR
|
||||||
|
- name: MATOMO_GENERAL_PROXY_HOST_HEADERS
|
||||||
|
value: HTTP_X_FORWARDED_HOST
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 80
|
- containerPort: 80
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
@@ -47,16 +54,18 @@ spec:
|
|||||||
mountPath: /var/www/html
|
mountPath: /var/www/html
|
||||||
livenessProbe:
|
livenessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /index.php
|
path: /matomo.php
|
||||||
port: 80
|
port: 80
|
||||||
initialDelaySeconds: 60
|
initialDelaySeconds: 60
|
||||||
periodSeconds: 30
|
periodSeconds: 30
|
||||||
|
timeoutSeconds: 5
|
||||||
readinessProbe:
|
readinessProbe:
|
||||||
httpGet:
|
httpGet:
|
||||||
path: /index.php
|
path: /matomo.php
|
||||||
port: 80
|
port: 80
|
||||||
initialDelaySeconds: 30
|
initialDelaySeconds: 30
|
||||||
periodSeconds: 10
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
resources:
|
resources:
|
||||||
requests:
|
requests:
|
||||||
cpu: 100m
|
cpu: 100m
|
||||||
|
|||||||
Reference in New Issue
Block a user