whc4: quiet PHP WAF health probes
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user