grpc-xds/k8s/envoy/base/patch-probes.yaml (25 lines of code) (raw):
# Copyright 2024 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Patch to configure liveness, readiness, and startup probes.
apiVersion: apps/v1
kind: Deployment
metadata:
name: envoy
spec:
template:
spec:
containers:
- name: app
livenessProbe:
httpGet:
path: /ready
port: admin
failureThreshold: 3
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 1
# readinessProbe:
# httpGet:
# path: /healthz
# port: https
# httpHeaders:
# - name: x-envoy-livenessprobe
# value: healthz
# failureThreshold: 3
# successThreshold: 1
# initialDelaySeconds: 10
# periodSeconds: 10
# timeoutSeconds: 1
startupProbe:
httpGet:
path: /ready
port: admin
failureThreshold: 3
initialDelaySeconds: 3
periodSeconds: 10
timeoutSeconds: 1