Skip to content

Commit

Permalink
Add back healthchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdijk committed Oct 24, 2024
1 parent 3efb3bf commit f13b7c8
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 22 deletions.
21 changes: 21 additions & 0 deletions apps/varnish-proxy/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,24 @@ spec:
items:
- key: default.vcl
path: default.vcl
---
apiVersion: networking.gke.io/v1
kind: HealthCheckPolicy
metadata:
namespace: default
name: varnish-proxy
spec:
default:
checkIntervalSec: 60
timeoutSec: 30
config:
type: HTTP
httpHealthCheck:
port: 80
requestPath: /healthcheck
logConfig:
enabled: true
targetRef:
group: ""
kind: Service
name: varnish-svc
43 changes: 21 additions & 22 deletions apps/website/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,25 +85,24 @@ spec:
- name: website-storage
persistentVolumeClaim:
claimName: website-storage
# ---
# apiVersion: networking.gke.io/v1
# kind: HealthCheckPolicy
# metadata:
# namespace: default
# name: website
# spec:
# default:
# checkIntervalSec: 60
# timeoutSec: 30
# config:
# type: HTTP
# httpHealthCheck:
# port: 80
# host: ch.tudelft.nl
# requestPath: /wp-json/
# logConfig:
# enabled: true
# targetRef:
# group: ""
# kind: Service
# name: website
---
apiVersion: networking.gke.io/v1
kind: HealthCheckPolicy
metadata:
namespace: default
name: website
spec:
default:
checkIntervalSec: 60
timeoutSec: 30
config:
type: HTTP
httpHealthCheck:
port: 80
requestPath: /wp-json/
logConfig:
enabled: true
targetRef:
group: ""
kind: Service
name: website

0 comments on commit f13b7c8

Please sign in to comment.