From d71ce6e8f076622d2465ec9a80320c1c2f826078 Mon Sep 17 00:00:00 2001 From: Sabbir Ahmed Shameem <145862004+SAShameem@users.noreply.github.com> Date: Tue, 7 May 2024 19:29:18 +0600 Subject: [PATCH] Create pod-with-tcp-socket-healthcheck.yaml --- .../pod-with-tcp-socket-healthcheck.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 content/bn/examples/pods/probe/pod-with-tcp-socket-healthcheck.yaml diff --git a/content/bn/examples/pods/probe/pod-with-tcp-socket-healthcheck.yaml b/content/bn/examples/pods/probe/pod-with-tcp-socket-healthcheck.yaml new file mode 100644 index 0000000000..5f0bca283c --- /dev/null +++ b/content/bn/examples/pods/probe/pod-with-tcp-socket-healthcheck.yaml @@ -0,0 +1,19 @@ +apiVersion: v1 +kind: Pod +metadata: + name: pod-with-tcp-socket-healthcheck +spec: + containers: + - name: redis + image: redis + # defines the health checking + livenessProbe: + # a TCP socket probe + tcpSocket: + port: 6379 + # length of time to wait for a pod to initialize + # after pod startup, before applying health checking + initialDelaySeconds: 30 + timeoutSeconds: 1 + ports: + - containerPort: 6379