Skip to content

Commit 52b8ef6

Browse files
committed
fix: envoy healthcheck
1 parent b3cc4f6 commit 52b8ef6

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

k8s/kkweon-okteto/envoy-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,15 @@ data:
2525
typed_config:
2626
"@type": type.googleapis.com/envoy.extensions.access_loggers.stream.v3.StdoutAccessLog
2727
http_filters:
28+
- name: envoy.filters.http.health_check
29+
typed_config:
30+
"@type": type.googleapis.com/envoy.extensions.filters.http.health_check.v3.HealthCheck
31+
pass_through_mode: false
32+
headers:
33+
- name: ":path"
34+
exact_match: "/healthz"
35+
- name: "x-envoy-livenessprobe"
36+
exact_match: "healthz"
2837
- name: envoy.filters.http.grpc_web
2938
- name: envoy.filters.http.cors
3039
- name: envoy.filters.http.router
@@ -52,6 +61,7 @@ data:
5261
- name: grpc_service
5362
connect_timeout: 0.25s
5463
type: logical_dns
64+
http2_protocol_options: {}
5565
lb_policy: round_robin
5666
load_assignment:
5767
cluster_name: cluster_0
@@ -62,6 +72,12 @@ data:
6272
socket_address:
6373
address: server
6474
port_value: 9000
75+
health_checks:
76+
timeout: 1s
77+
interval: 10s
78+
unhealthy_threshold: 2
79+
healthy_threshold: 2
80+
grpc_health_check: {}
6581
kind: ConfigMap
6682
metadata:
6783
name: envoy-config

k8s/kkweon-okteto/envoy-deployment.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,13 @@ spec:
6767
- mountPath: /etc/envoy/envoy.yaml
6868
subPath: envoy.yaml
6969
name: envoy-config
70+
readinessProbe:
71+
httpGet:
72+
port: envoy
73+
httpHeaders:
74+
- name: x-envoy-livenessprobe
75+
value: healthz
76+
path: /healthz
7077
volumes:
7178
- name: envoy-config
7279
configMap:

0 commit comments

Comments
 (0)