ghp: probe/scrape over HTTPS to match TLS metrics endpoint
ci/woodpecker/pr/vector-test Pipeline was successful
ci/woodpecker/pr/pre-commit Pipeline was successful
ci/woodpecker/pr/kubeconform Pipeline was successful

ghp serves metrics over HTTPS (TLS configured globally), but the
liveness/readiness probes used the default HTTP scheme, so the kubelet
probe hit an HTTPS-server error and pods never went Ready. Set
scheme: HTTPS on both probes (kubelet does not verify the probe cert).

The VMServiceScrape targets that same HTTPS endpoint, so set scheme:
https with tlsConfig.insecureSkipVerify (internal-CA cert, pod-IP target
not in the cert SANs); otherwise VM scraping of ghp fails.

- deployment.yaml: liveness+readiness probes scheme HTTP -> HTTPS
- vmservicescrape.yaml: scheme https + tlsConfig.insecureSkipVerify
This commit is contained in:
2026-08-13 21:39:38 +10:00
parent 2969b6145c
commit f268c4d9ba
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -102,7 +102,7 @@ spec:
httpGet:
path: /metrics
port: metrics
scheme: HTTP
scheme: HTTPS
initialDelaySeconds: 30
periodSeconds: 30
successThreshold: 1
@@ -112,7 +112,7 @@ spec:
httpGet:
path: /metrics
port: metrics
scheme: HTTP
scheme: HTTPS
initialDelaySeconds: 10
periodSeconds: 5
successThreshold: 1
+5
View File
@@ -16,3 +16,8 @@ spec:
endpoints:
- port: metrics
path: /metrics
scheme: https
# ghp serves metrics over TLS with an internal-CA cert; skip verification
# since the scrape targets a pod IP the cert SANs do not cover.
tlsConfig:
insecureSkipVerify: true