add health check for paaas

This commit is contained in:
sirius0xdev 2026-04-28 04:42:42 +00:00
parent aca1298f64
commit 205c43f7c2
3 changed files with 18 additions and 1 deletions

View file

@ -32,6 +32,8 @@ kind: Service
metadata: metadata:
name: paaas-landing-svc name: paaas-landing-svc
namespace: customer1 namespace: customer1
annotations:
networking.gke.io/healthcheck-policy: paaas-healthcheck
spec: spec:
selector: selector:
app: paaas-landing app: paaas-landing

View file

@ -0,0 +1,14 @@
apiVersion: networking.gke.io/v1
kind: HealthCheckPolicy
metadata:
name: paaas-healthcheck
namespace: customer1
spec:
default:
checkIntervalSec: 10
timeoutSec: 5
healthyThreshold: 2
unhealthyThreshold: 2
httpHealthCheck:
port: 80
requestPath: /

View file

@ -1,4 +1,5 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- deployment.yaml - deployment.yaml
- healthcheck.yaml