add health check for paaas
This commit is contained in:
parent
aca1298f64
commit
205c43f7c2
3 changed files with 18 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
14
apps/base/customer1/paaas-landing/healthcheck.yaml
Normal file
14
apps/base/customer1/paaas-landing/healthcheck.yaml
Normal 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: /
|
||||||
|
|
@ -2,3 +2,4 @@ apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
kind: Kustomization
|
kind: Kustomization
|
||||||
resources:
|
resources:
|
||||||
- deployment.yaml
|
- deployment.yaml
|
||||||
|
- healthcheck.yaml
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue