From 420986c95d06514b23ab8f0c0092140096c67972 Mon Sep 17 00:00:00 2001
From: Pinghao Wu <xdavidwuph@gmail.com>
Date: Sun, 2 Mar 2025 15:25:33 +0800
Subject: [PATCH] sourcehut: paste: add readinessprobes

---
 applications/sourcehut/deployment-paste.yaml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/applications/sourcehut/deployment-paste.yaml b/applications/sourcehut/deployment-paste.yaml
index 6cf4f92..9fea0ff 100644
--- a/applications/sourcehut/deployment-paste.yaml
+++ b/applications/sourcehut/deployment-paste.yaml
@@ -19,6 +19,9 @@ spec:
             - name: secrets
               mountPath: /etc/sr.ht/config.ini
               subPath: config.ini
+          readinessProbe:
+            httpGet:
+              port: 5011
         - name: api
           image: ghcr.io/xdavidwu/c/pastesrht:3534
           command:
@@ -28,6 +31,10 @@ spec:
             - name: secrets
               mountPath: /etc/sr.ht/config.ini
               subPath: config.ini
+          readinessProbe:
+            httpGet:
+              port: 5111
+              path: /query/api-meta.json
       volumes:
         - name: secrets
           secret:
-- 
2.45.2