whc4: quiet PHP WAF health probes

This commit is contained in:
Andrew Stoltz
2026-06-17 19:27:02 -05:00
parent ef782ed56d
commit 193b167d10
2 changed files with 26 additions and 0 deletions

View File

@@ -101,6 +101,12 @@
"livenessProbe": {
"failureThreshold": 3,
"httpGet": {
"httpHeaders": [
{
"name": "Host",
"value": "php.iamworkin.lan"
}
],
"path": "/healthz",
"port": 8080,
"scheme": "HTTP"
@@ -121,6 +127,12 @@
"readinessProbe": {
"failureThreshold": 3,
"httpGet": {
"httpHeaders": [
{
"name": "Host",
"value": "php.iamworkin.lan"
}
],
"path": "/healthz",
"port": 8080,
"scheme": "HTTP"

View File

@@ -1037,6 +1037,20 @@ public sealed class FleetManifestLintTests
podSpec.GetProperty("enableServiceLinks").GetBoolean().Should().BeFalse();
podSpec.GetProperty("securityContext").GetProperty("runAsUser").GetInt32().Should().Be(101);
podSpec.GetProperty("securityContext").GetProperty("runAsNonRoot").GetBoolean().Should().BeTrue();
wafContainer.GetProperty("livenessProbe")
.GetProperty("httpGet")
.GetProperty("httpHeaders")[0]
.GetProperty("value")
.GetString()
.Should()
.Be("php.iamworkin.lan");
wafContainer.GetProperty("readinessProbe")
.GetProperty("httpGet")
.GetProperty("httpHeaders")[0]
.GetProperty("value")
.GetString()
.Should()
.Be("php.iamworkin.lan");
using var service = JsonDocument.Parse(File.ReadAllText(Path.Combine(appRoot, "service-php-waf.json")));
service.RootElement.GetProperty("spec").GetProperty("selector").GetProperty("app.kubernetes.io/name").GetString().Should().Be("php-waf");